Class StringDbValueEncryptor
java.lang.Object
de.xima.fc.persistence.impl.security.StringDbValueEncryptor
- All Implemented Interfaces:
DbValueEncryptor<String,String>
Encryptor that converts String values to encrypted String values and vice versa.
- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDecrypts the given value.Encrypts the given value.Gets the class type of the encrypted value.Gets the class type of the unencrypted value.
-
Constructor Details
-
StringDbValueEncryptor
public StringDbValueEncryptor()
-
-
Method Details
-
decrypt
Description copied from interface:DbValueEncryptorDecrypts the given value.- Specified by:
decryptin interfaceDbValueEncryptor<String,String> - Parameters:
value- The value to decrypt.scope- Optional. The scope for decryption, can be used to differentiate between different encryption contexts.- Returns:
- The decrypted value.
- Throws:
FcEncryptionException- If decryption fails.
-
encrypt
Description copied from interface:DbValueEncryptorEncrypts the given value.- Specified by:
encryptin interfaceDbValueEncryptor<String,String> - Parameters:
value- The value to encrypt.scope- Optional. The scope for encryption, can be used to differentiate between different encryption contexts.- Returns:
- The encrypted value.
- Throws:
FcEncryptionException- If encryption fails.
-
getEncryptedType
Description copied from interface:DbValueEncryptorGets the class type of the encrypted value.- Specified by:
getEncryptedTypein interfaceDbValueEncryptor<String,String> - Returns:
- The class type of the encrypted value.
-
getUnencryptedType
Description copied from interface:DbValueEncryptorGets the class type of the unencrypted value.- Specified by:
getUnencryptedTypein interfaceDbValueEncryptor<String,String> - Returns:
- The class type of the unencrypted value.
-