Class EncryptionConverter

java.lang.Object
org.kuali.rice.krad.data.jpa.converters.EncryptionConverter
All Implemented Interfaces:
javax.persistence.AttributeConverter<String,String>

public class EncryptionConverter extends Object implements javax.persistence.AttributeConverter<String,String>
Calls the core service to encrypt values going to the database and decrypt values coming back from the database.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • EncryptionConverter

      public EncryptionConverter()
  • Method Details

    • convertToDatabaseColumn

      public String convertToDatabaseColumn(String objectValue)
      This implementation encrypts the value going to the database.
      Specified by:
      convertToDatabaseColumn in interface javax.persistence.AttributeConverter<String,String>
    • convertToEntityAttribute

      public String convertToEntityAttribute(String dataValue)
      This implementation decrypts the value coming from the database.
      Specified by:
      convertToEntityAttribute in interface javax.persistence.AttributeConverter<String,String>