Package org.nuxeo.ecm.core.blob
Class AESBlobStoreConfiguration
java.lang.Object
org.nuxeo.ecm.core.blob.PropertyBasedConfiguration
org.nuxeo.ecm.core.blob.AESBlobStoreConfiguration
Configuration for the AES-encrypted storage of files.
- Since:
- 11.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringfinal Stringfinal Stringfinal Stringfinal Stringfinal Stringfinal Stringprotected static final intprotected static final intprotected static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringIftrue, use the insecure AES/CBC/PKCS5Padding for encryption.static final Stringfinal booleanfinal booleanFields inherited from class org.nuxeo.ecm.core.blob.PropertyBasedConfiguration
properties, systemPropertyPrefix -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected KeygenerateSecretKey(byte[] salt) Generates an AES key from the password using PBKDF2.protected Cipherprotected AlgorithmParameterSpecgetParameterSpec(byte[] iv) protected KeyGets the AES key from the keystore.protected voidMethods inherited from class org.nuxeo.ecm.core.blob.PropertyBasedConfiguration
getBooleanProperty, getIntProperty, getIntProperty, getLongProperty, getProperty, getProperty
-
Field Details
-
AES
- See Also:
-
PBKDF2_WITH_HMAC_SHA1
- See Also:
-
PBKDF2_ITERATIONS
protected static final int PBKDF2_ITERATIONS- See Also:
-
PBKDF2_KEY_LENGTH
protected static final int PBKDF2_KEY_LENGTH- See Also:
-
AES_CBC_PKCS5_PADDING
- See Also:
-
AES_GCM_NOPADDING
- See Also:
-
PROP_COMPAT_KEY
- See Also:
-
PROP_PASSWORD
- See Also:
-
PROP_KEY_STORE_TYPE
- See Also:
-
PROP_KEY_STORE_FILE
- See Also:
-
PROP_KEY_STORE_PASSWORD
- See Also:
-
PROP_KEY_ALIAS
- See Also:
-
PROP_KEY_PASSWORD
- See Also:
-
PROP_KEY_USE_INSECURE_CIPHER
Iftrue, use the insecure AES/CBC/PKCS5Padding for encryption. The default isfalse, to use AES/GCM/NoPadding.- See Also:
-
usePBKDF2
public final boolean usePBKDF2 -
password
-
keyStoreType
-
keyStoreFile
-
keyStorePassword
-
keyAlias
-
keyPassword
-
useInsecureCipher
public final boolean useInsecureCipher
-
-
Constructor Details
-
AESBlobStoreConfiguration
- Throws:
IOException
-
-
Method Details
-
parseCompat
protected void parseCompat() -
generateSecretKey
Generates an AES key from the password using PBKDF2.- Parameters:
salt- the salt- Throws:
GeneralSecurityException
-
getSecretKey
Gets the AES key from the keystore.- Throws:
GeneralSecurityExceptionIOException
-
getCipher
- Throws:
GeneralSecurityException
-
getParameterSpec
-