Class ByteAttributeConverter

Object
org.jasypt.hibernate6.encryptor.converters.ByteAttributeConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<byte[],byte[]>

public class ByteAttributeConverter extends Object implements jakarta.persistence.AttributeConverter<byte[],byte[]>
  • Constructor Details

    • ByteAttributeConverter

      public ByteAttributeConverter()
  • Method Details

    • convertToDatabaseColumn

      public byte[] convertToDatabaseColumn(byte[] attribute)
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<byte[],byte[]>
    • convertToEntityAttribute

      public byte[] convertToEntityAttribute(byte[] dbData)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<byte[],byte[]>