org.apache.openjpa.lib.encryption
Interface EncryptionProvider


public interface EncryptionProvider

Interface for providing encryption/decryption capabilities to the OpenJPA runtime. Currently method is ONLY called to decrypt openjpa.ConnectionPassword and openjpa.Connection2Password properties.


Method Summary
 String decrypt(String password)
          This method will decrypt the provided string.
 String encrypt(String password)
          This method will encrypt the provided string.
 

Method Detail

decrypt

String decrypt(String password)
This method will decrypt the provided string. If null is passed into this method it should noop and return null. No exceptions should ever escape from this method. Note: Currently method is ONLY called to decrypt openjpa.ConnectionPassword and openjpa.Connection2Password properties.


encrypt

String encrypt(String password)
This method will encrypt the provided string. If null is passed into this method it should noop and return null. No exceptions should ever escape from this method. NOTE : This method is not called by the OpenJPA runtime. It is here for possible future uses.



Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.