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
protected abstract static class EntityCrypto.StorageHandler extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StorageHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract byte[]
decodeKeyBytes(java.lang.String keyText)
protected abstract byte[]
decryptValue(byte[] key, ModelField.EncryptMethod encryptMethod, java.lang.String encryptedString)
protected abstract java.lang.String
encodeKey(byte[] key)
protected abstract java.lang.String
encryptValue(ModelField.EncryptMethod encryptMethod, byte[] key, byte[] objBytes)
protected abstract java.security.Key
generateNewKey()
protected abstract java.lang.String
getHashedKeyName(java.lang.String originalKeyName)
protected abstract java.lang.String
getKeyMapPrefix(java.lang.String hashedKeyName)
-
-
-
Method Detail
-
generateNewKey
protected abstract java.security.Key generateNewKey() throws EntityCryptoException
- Throws:
EntityCryptoException
-
getHashedKeyName
protected abstract java.lang.String getHashedKeyName(java.lang.String originalKeyName)
-
getKeyMapPrefix
protected abstract java.lang.String getKeyMapPrefix(java.lang.String hashedKeyName)
-
decodeKeyBytes
protected abstract byte[] decodeKeyBytes(java.lang.String keyText) throws GeneralException
- Throws:
GeneralException
-
encodeKey
protected abstract java.lang.String encodeKey(byte[] key) throws GeneralException
- Throws:
GeneralException
-
decryptValue
protected abstract byte[] decryptValue(byte[] key, ModelField.EncryptMethod encryptMethod, java.lang.String encryptedString) throws GeneralException
- Throws:
GeneralException
-
encryptValue
protected abstract java.lang.String encryptValue(ModelField.EncryptMethod encryptMethod, byte[] key, byte[] objBytes) throws GeneralException
- Throws:
GeneralException
-
-