public interface EncryptionServiceFactory
Modifier and Type | Method and Description |
---|---|
byte[] |
createAESEncryptedSecretKey(byte[] salt,
char[] password)
Generate AES symmetric secret key,
Called when a service is first initialized.
|
byte[] |
createAESEncryptedSecretKey(byte[] salt,
java.lang.String password)
Deprecated.
|
byte[] |
createEncryptedSecretKey(byte[] salt,
char[] password)
Generate a symmetric secret key,
encrypt it into some bytes and return the encrypted bytes.
|
byte[] |
createEncryptedSecretKey(byte[] salt,
java.lang.String password)
Deprecated.
|
EncryptionService |
getEncryptionService(byte[] salt,
char[] password,
byte[] encryptedKey)
Instantiate and initialize an instance of an EncryptionService.
|
EncryptionService |
getEncryptionService(byte[] salt,
char[] password,
byte[] encryptedKey,
byte[] encryptedAESKey)
Instantiate and initialize an instance of an EncryptionService with AES.
|
EncryptionService |
getEncryptionService(byte[] salt,
java.lang.String password,
byte[] encryptedKey)
Deprecated.
|
EncryptionService |
getEncryptionService(byte[] salt,
java.lang.String password,
byte[] encryptedKey,
byte[] encryptedAESKey)
Deprecated.
|
byte[] |
reEncryptEncryptedSecretKey(byte[] oldEncryptedKey,
byte[] oldSalt,
byte[] newSalt,
char[] oldPassword,
char[] newPassword)
Take an encrypted key, decrypt it with the old* parameters,
encrypt it with the new* parameters and return the result.
|
byte[] |
reEncryptEncryptedSecretKey(byte[] oldEncryptedKey,
byte[] oldSalt,
byte[] newSalt,
java.lang.String oldPassword,
java.lang.String newPassword)
Deprecated.
|
@Deprecated byte[] createEncryptedSecretKey(byte[] salt, java.lang.String password) throws EncryptionServiceException
EncryptionServiceException
byte[] createEncryptedSecretKey(byte[] salt, char[] password) throws EncryptionServiceException
EncryptionServiceException
@Deprecated EncryptionService getEncryptionService(byte[] salt, java.lang.String password, byte[] encryptedKey) throws EncryptionServiceException
EncryptionServiceException
EncryptionService getEncryptionService(byte[] salt, char[] password, byte[] encryptedKey) throws EncryptionServiceException
EncryptionServiceException
@Deprecated byte[] reEncryptEncryptedSecretKey(byte[] oldEncryptedKey, byte[] oldSalt, byte[] newSalt, java.lang.String oldPassword, java.lang.String newPassword) throws EncryptionServiceException
EncryptionServiceException
byte[] reEncryptEncryptedSecretKey(byte[] oldEncryptedKey, byte[] oldSalt, byte[] newSalt, char[] oldPassword, char[] newPassword) throws EncryptionServiceException
EncryptionServiceException
@Deprecated byte[] createAESEncryptedSecretKey(byte[] salt, java.lang.String password) throws EncryptionServiceException
EncryptionServiceException
byte[] createAESEncryptedSecretKey(byte[] salt, char[] password) throws EncryptionServiceException
EncryptionServiceException
@Deprecated EncryptionService getEncryptionService(byte[] salt, java.lang.String password, byte[] encryptedKey, byte[] encryptedAESKey) throws EncryptionServiceException
EncryptionServiceException
EncryptionService getEncryptionService(byte[] salt, char[] password, byte[] encryptedKey, byte[] encryptedAESKey) throws EncryptionServiceException
EncryptionServiceException