Package org.apache.ofbiz.entity.util
Class EntityCrypto.StorageHandler
java.lang.Object
org.apache.ofbiz.entity.util.EntityCrypto.StorageHandler
- Direct Known Subclasses:
EntityCrypto.LegacyStorageHandler
,EntityCrypto.SaltedBase64StorageHandler
,EntityCrypto.ShiroStorageHandler
- Enclosing class:
- EntityCrypto
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract byte[]
decodeKeyBytes
(String keyText) protected abstract byte[]
decryptValue
(byte[] key, ModelField.EncryptMethod encryptMethod, String encryptedString) protected abstract String
encodeKey
(byte[] key) protected abstract String
encryptValue
(ModelField.EncryptMethod encryptMethod, byte[] key, byte[] objBytes) protected abstract Key
protected abstract String
getHashedKeyName
(String originalKeyName) protected abstract String
getKeyMapPrefix
(String hashedKeyName)
-
Constructor Details
-
StorageHandler
protected StorageHandler()
-
-
Method Details
-
generateNewKey
- Throws:
EntityCryptoException
-
getHashedKeyName
-
getKeyMapPrefix
-
decodeKeyBytes
- Throws:
GeneralException
-
encodeKey
- Throws:
GeneralException
-
decryptValue
protected abstract byte[] decryptValue(byte[] key, ModelField.EncryptMethod encryptMethod, String encryptedString) throws GeneralException - Throws:
GeneralException
-
encryptValue
protected abstract String encryptValue(ModelField.EncryptMethod encryptMethod, byte[] key, byte[] objBytes) throws GeneralException - Throws:
GeneralException
-