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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String decrypt​(java.lang.String password)
      This method will decrypt the provided string.
      java.lang.String encrypt​(java.lang.String password)
      This method will encrypt the provided string.
    • Method Detail

      • decrypt

        java.lang.String decrypt​(java.lang.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

        java.lang.String encrypt​(java.lang.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.