Package step.core.encryption
Interface EncryptionManager
-
public interface EncryptionManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringdecrypt(String encryptedValue)Stringencrypt(String value)booleanisFirstStart()booleanisKeyPairChanged()
-
-
-
Method Detail
-
encrypt
String encrypt(String value) throws EncryptionManagerException
- Throws:
EncryptionManagerException
-
decrypt
String decrypt(String encryptedValue) throws EncryptionManagerException
- Throws:
EncryptionManagerException
-
isKeyPairChanged
boolean isKeyPairChanged()
- Returns:
- true if the key pair of this encryption manager has changed and that a re-encryption is required
-
isFirstStart
boolean isFirstStart()
- Returns:
- true if this encryption manager is starting for the first time and that initial encryption is required
-
-