public abstract class AbstractEncryptedConverter<T,R> extends Object implements AttributeConverter<T,R>
| Constructor and Description |
|---|
AbstractEncryptedConverter() |
| Modifier and Type | Method and Description |
|---|---|
R |
convertToDatabaseColumn(T attribute) |
T |
convertToEntityAttribute(R dbData) |
protected Encryptor<T,R> |
encryptor() |
protected abstract Encryptor<T,R> |
getEncryptor(String algorithm,
String password) |
protected boolean |
isMigrating() |
protected Encryptor<T,R> |
oldEncryptor() |
protected boolean isMigrating()
public R convertToDatabaseColumn(T attribute)
convertToDatabaseColumn in interface AttributeConverter<T,R>public T convertToEntityAttribute(R dbData)
convertToEntityAttribute in interface AttributeConverter<T,R>