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
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
Methods inherited from class org.apache.ofbiz.entity.util.EntityCrypto.StorageHandler
getHashedKeyName, getKeyMapPrefix
-
Constructor Details
-
LegacyStorageHandler
protected LegacyStorageHandler()
-
-
Method Details
-
generateNewKey
- Specified by:
generateNewKey
in classEntityCrypto.StorageHandler
- Throws:
EntityCryptoException
-
decodeKeyBytes
- Specified by:
decodeKeyBytes
in classEntityCrypto.StorageHandler
- Throws:
GeneralException
-
encodeKey
- Specified by:
encodeKey
in classEntityCrypto.StorageHandler
-
decryptValue
protected byte[] decryptValue(byte[] key, ModelField.EncryptMethod encryptMethod, String encryptedString) throws GeneralException - Specified by:
decryptValue
in classEntityCrypto.StorageHandler
- Throws:
GeneralException
-
encryptValue
protected String encryptValue(ModelField.EncryptMethod encryptMethod, byte[] key, byte[] objBytes) throws GeneralException - Specified by:
encryptValue
in classEntityCrypto.StorageHandler
- Throws:
GeneralException
-