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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.jasypt.encryption.pbe.PooledPBEByteEncryptorprotected final booleanprotected org.jasypt.encryption.pbe.PooledPBEByteEncryptorFields inherited from class de.xima.fc.encryption.db.AbstractEncryptor
migrate, provider -
Constructor Summary
ConstructorsConstructorDescriptionDBBinaryEncryptor(Provider provider, EDBEncryptionAlgorithm algorithm, String password, boolean isActive) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]decrypt(byte[] value) byte[]encrypt(byte[] value) voidmigrate(EDBEncryptionAlgorithm algorithm, String password, boolean active) Methods inherited from class de.xima.fc.encryption.db.AbstractEncryptor
isMigrateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.xima.fc.interfaces.security.encryption.IDBBinaryEncryptor
isMigrate
-
Field Details
-
encryptor
protected org.jasypt.encryption.pbe.PooledPBEByteEncryptor encryptor -
oldEncryptor
protected org.jasypt.encryption.pbe.PooledPBEByteEncryptor oldEncryptor -
isActive
protected final boolean isActive
-
-
Constructor Details
-
DBBinaryEncryptor
public DBBinaryEncryptor(Provider provider, EDBEncryptionAlgorithm algorithm, String password, boolean isActive)
-
-
Method Details
-
encrypt
public byte[] encrypt(byte[] value) throws org.jasypt.exceptions.EncryptionOperationNotPossibleException, org.jasypt.exceptions.EncryptionInitializationException - Specified by:
encryptin interfaceIDBBinaryEncryptor- Throws:
org.jasypt.exceptions.EncryptionOperationNotPossibleExceptionorg.jasypt.exceptions.EncryptionInitializationException
-
decrypt
public byte[] decrypt(byte[] value) throws org.jasypt.exceptions.EncryptionOperationNotPossibleException, org.jasypt.exceptions.EncryptionInitializationException - Specified by:
decryptin interfaceIDBBinaryEncryptor- Throws:
org.jasypt.exceptions.EncryptionOperationNotPossibleExceptionorg.jasypt.exceptions.EncryptionInitializationException
-
migrate
- Specified by:
migratein interfaceIDBBinaryEncryptor
-