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 Details

    • encryptor

      protected org.jasypt.encryption.pbe.PooledPBEByteEncryptor encryptor
    • oldEncryptor

      protected org.jasypt.encryption.pbe.PooledPBEByteEncryptor oldEncryptor
    • isActive

      protected final boolean isActive
  • Constructor Details

  • Method Details

    • encrypt

      public byte[] encrypt(byte[] value) throws org.jasypt.exceptions.EncryptionOperationNotPossibleException, org.jasypt.exceptions.EncryptionInitializationException
      Specified by:
      encrypt in interface IDBBinaryEncryptor
      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 interface IDBBinaryEncryptor
      Throws:
      org.jasypt.exceptions.EncryptionOperationNotPossibleException
      org.jasypt.exceptions.EncryptionInitializationException
    • migrate

      public void migrate(EDBEncryptionAlgorithm algorithm, String password, boolean active)
      Specified by:
      migrate in interface IDBBinaryEncryptor