Package org.apache.ofbiz.entity.util
Class EntityCrypto.LegacyStorageHandler
- java.lang.Object
-
- org.apache.ofbiz.entity.util.EntityCrypto.StorageHandler
-
- org.apache.ofbiz.entity.util.EntityCrypto.LegacyStorageHandler
-
- Enclosing class:
- EntityCrypto
protected abstract static class EntityCrypto.LegacyStorageHandler extends EntityCrypto.StorageHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LegacyStorageHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
decodeKeyBytes(java.lang.String keyText)
protected byte[]
decryptValue(byte[] key, ModelField.EncryptMethod encryptMethod, java.lang.String encryptedString)
protected java.lang.String
encodeKey(byte[] key)
protected java.lang.String
encryptValue(ModelField.EncryptMethod encryptMethod, byte[] key, byte[] objBytes)
protected java.security.Key
generateNewKey()
-
Methods inherited from class org.apache.ofbiz.entity.util.EntityCrypto.StorageHandler
getHashedKeyName, getKeyMapPrefix
-
-
-
-
Method Detail
-
generateNewKey
protected java.security.Key generateNewKey() throws EntityCryptoException
- Specified by:
generateNewKey
in classEntityCrypto.StorageHandler
- Throws:
EntityCryptoException
-
decodeKeyBytes
protected byte[] decodeKeyBytes(java.lang.String keyText) throws GeneralException
- Specified by:
decodeKeyBytes
in classEntityCrypto.StorageHandler
- Throws:
GeneralException
-
encodeKey
protected java.lang.String encodeKey(byte[] key)
- Specified by:
encodeKey
in classEntityCrypto.StorageHandler
-
decryptValue
protected byte[] decryptValue(byte[] key, ModelField.EncryptMethod encryptMethod, java.lang.String encryptedString) throws GeneralException
- Specified by:
decryptValue
in classEntityCrypto.StorageHandler
- Throws:
GeneralException
-
encryptValue
protected java.lang.String encryptValue(ModelField.EncryptMethod encryptMethod, byte[] key, byte[] objBytes) throws GeneralException
- Specified by:
encryptValue
in classEntityCrypto.StorageHandler
- Throws:
GeneralException
-
-