org.kuali.rice.krad.data.jpa.converters
Class EncryptionConverter

java.lang.Object
  extended by 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>

This class calls core service to encrypt values going to the database and decrypt values coming back from the database.


Constructor Summary
EncryptionConverter()
           
 
Method Summary
 String convertToDatabaseColumn(String objectValue)
           
 String convertToEntityAttribute(String dataValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptionConverter

public EncryptionConverter()
Method Detail

convertToDatabaseColumn

public String convertToDatabaseColumn(String objectValue)
Specified by:
convertToDatabaseColumn in interface javax.persistence.AttributeConverter<String,String>

convertToEntityAttribute

public String convertToEntityAttribute(String dataValue)
Specified by:
convertToEntityAttribute in interface javax.persistence.AttributeConverter<String,String>


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.