Class AbstractEncryptedConverter<T,R>

java.lang.Object
com.axelor.db.converters.AbstractEncryptedConverter<T,R>
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<T,R>
Direct Known Subclasses:
EncryptedBytesConverter, EncryptedStringConverter

public abstract class AbstractEncryptedConverter<T,R> extends Object implements jakarta.persistence.AttributeConverter<T,R>
  • Constructor Details

    • AbstractEncryptedConverter

      public AbstractEncryptedConverter()
  • Method Details

    • getEncryptor

      protected abstract Encryptor<T,R> getEncryptor(String algorithm, String password)
    • encryptor

      protected final Encryptor<T,R> encryptor()
    • oldEncryptor

      protected final Encryptor<T,R> oldEncryptor()
    • isMigrating

      protected boolean isMigrating()
    • convertToDatabaseColumn

      public R convertToDatabaseColumn(T attribute)
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<T,R>
    • convertToEntityAttribute

      public T convertToEntityAttribute(R dbData)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<T,R>