Package de.xima.fc.encryption.db
Class DBBinaryEncryptor
- java.lang.Object
-
- de.xima.fc.encryption.db.AbstractEncryptor
-
- de.xima.fc.encryption.db.DBBinaryEncryptor
-
- All Implemented Interfaces:
IDBBinaryEncryptor
public class DBBinaryEncryptor extends AbstractEncryptor implements IDBBinaryEncryptor
-
-
Field Summary
Fields Modifier and Type Field Description protected org.jasypt.encryption.pbe.PooledPBEByteEncryptor
encryptor
protected boolean
isActive
protected org.jasypt.encryption.pbe.PooledPBEByteEncryptor
oldEncryptor
-
Fields inherited from class de.xima.fc.encryption.db.AbstractEncryptor
migrate, provider
-
-
Constructor Summary
Constructors Constructor Description DBBinaryEncryptor(Provider provider, EDBEncryptionAlgorithm algorithm, String password, boolean isActive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
decrypt(byte[] value)
byte[]
encrypt(byte[] 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.IDBBinaryEncryptor
isMigrate
-
-
-
-
Constructor Detail
-
DBBinaryEncryptor
public DBBinaryEncryptor(Provider provider, EDBEncryptionAlgorithm algorithm, String password, boolean isActive)
-
-
Method Detail
-
encrypt
public byte[] encrypt(byte[] value) throws org.jasypt.exceptions.EncryptionOperationNotPossibleException, org.jasypt.exceptions.EncryptionInitializationException
- Specified by:
encrypt
in interfaceIDBBinaryEncryptor
- Throws:
org.jasypt.exceptions.EncryptionOperationNotPossibleException
org.jasypt.exceptions.EncryptionInitializationException
-
decrypt
public byte[] decrypt(byte[] value) throws org.jasypt.exceptions.EncryptionOperationNotPossibleException, org.jasypt.exceptions.EncryptionInitializationException
- Specified by:
decrypt
in interfaceIDBBinaryEncryptor
- Throws:
org.jasypt.exceptions.EncryptionOperationNotPossibleException
org.jasypt.exceptions.EncryptionInitializationException
-
migrate
public void migrate(EDBEncryptionAlgorithm algorithm, String password, boolean active)
- Specified by:
migrate
in interfaceIDBBinaryEncryptor
-
-