protected static final class EntityCrypto.SaltedBase64StorageHandler extends EntityCrypto.StorageHandler
Modifier | Constructor and Description |
---|---|
protected |
SaltedBase64StorageHandler(byte[] kek) |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
decodeKeyBytes(String keyText) |
protected byte[] |
decryptValue(byte[] key,
ModelField.EncryptMethod encryptMethod,
String encryptedString) |
protected String |
encodeKey(byte[] key) |
protected String |
encryptValue(ModelField.EncryptMethod encryptMethod,
byte[] key,
byte[] objBytes) |
protected Key |
generateNewKey() |
protected String |
getHashedKeyName(String originalKeyName) |
protected String |
getKeyMapPrefix(String hashedKeyName) |
protected SaltedBase64StorageHandler(byte[] kek) throws EntityCryptoException
EntityCryptoException
protected Key generateNewKey() throws EntityCryptoException
generateNewKey
in class EntityCrypto.StorageHandler
EntityCryptoException
protected String getHashedKeyName(String originalKeyName)
getHashedKeyName
in class EntityCrypto.StorageHandler
protected String getKeyMapPrefix(String hashedKeyName)
getKeyMapPrefix
in class EntityCrypto.StorageHandler
protected byte[] decodeKeyBytes(String keyText) throws GeneralException
decodeKeyBytes
in class EntityCrypto.StorageHandler
GeneralException
protected String encodeKey(byte[] key) throws GeneralException
encodeKey
in class EntityCrypto.StorageHandler
GeneralException
protected byte[] decryptValue(byte[] key, ModelField.EncryptMethod encryptMethod, String encryptedString) throws GeneralException
decryptValue
in class EntityCrypto.StorageHandler
GeneralException
protected String encryptValue(ModelField.EncryptMethod encryptMethod, byte[] key, byte[] objBytes) throws GeneralException
encryptValue
in class EntityCrypto.StorageHandler
GeneralException