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
public class DBStringEncryptor extends AbstractEncryptor implements IDBStringEncryptor
-
-
Field Summary
Fields Modifier and Type Field Description protected org.jasypt.encryption.pbe.PooledPBEStringEncryptor
encryptor
protected boolean
isActive
protected org.jasypt.encryption.pbe.PooledPBEStringEncryptor
oldEncryptor
-
Fields inherited from class de.xima.fc.encryption.db.AbstractEncryptor
migrate, provider
-
-
Constructor Summary
Constructors Constructor Description DBStringEncryptor(Provider provider, EDBEncryptionAlgorithm algorithm, String password, boolean isActive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
decrypt(String value)
String
encrypt(String value)
void
migrate(EDBEncryptionAlgorithm algorithm, String password, boolean active)
-
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
-
-
-
-
Constructor Detail
-
DBStringEncryptor
public DBStringEncryptor(Provider provider, EDBEncryptionAlgorithm algorithm, String password, boolean isActive)
-
-
Method Detail
-
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
public void migrate(EDBEncryptionAlgorithm algorithm, String password, boolean active)
- Specified by:
migrate
in interfaceIDBStringEncryptor
-
-