Package de.xima.fc.encryption.db
Class DBStringEncryptor
java.lang.Object
de.xima.fc.encryption.db.AbstractEncryptor
de.xima.fc.encryption.db.DBStringEncryptor
- All Implemented Interfaces:
IDBStringEncryptor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.jasypt.encryption.pbe.PooledPBEStringEncryptor
protected final boolean
protected org.jasypt.encryption.pbe.PooledPBEStringEncryptor
Fields inherited from class de.xima.fc.encryption.db.AbstractEncryptor
migrate, provider
-
Constructor Summary
ConstructorsConstructorDescriptionDBStringEncryptor
(Provider provider, EDBEncryptionAlgorithm algorithm, String password, boolean isActive) -
Method Summary
Methods inherited from class de.xima.fc.encryption.db.AbstractEncryptor
isMigrate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.xima.fc.interfaces.security.encryption.IDBStringEncryptor
isMigrate
-
Field Details
-
encryptor
protected org.jasypt.encryption.pbe.PooledPBEStringEncryptor encryptor -
oldEncryptor
protected org.jasypt.encryption.pbe.PooledPBEStringEncryptor oldEncryptor -
isActive
protected final boolean isActive
-
-
Constructor Details
-
DBStringEncryptor
public DBStringEncryptor(Provider provider, EDBEncryptionAlgorithm algorithm, String password, boolean isActive)
-
-
Method Details
-
encrypt
public String encrypt(String value) throws org.jasypt.exceptions.EncryptionOperationNotPossibleException, org.jasypt.exceptions.EncryptionInitializationException - Specified by:
encrypt
in interfaceIDBStringEncryptor
- Throws:
org.jasypt.exceptions.EncryptionOperationNotPossibleException
org.jasypt.exceptions.EncryptionInitializationException
-
decrypt
public String decrypt(String value) throws org.jasypt.exceptions.EncryptionOperationNotPossibleException, org.jasypt.exceptions.EncryptionInitializationException - Specified by:
decrypt
in interfaceIDBStringEncryptor
- Throws:
org.jasypt.exceptions.EncryptionOperationNotPossibleException
org.jasypt.exceptions.EncryptionInitializationException
-
migrate
- Specified by:
migrate
in interfaceIDBStringEncryptor
-