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

    Modifier and Type
    Method
    Description
    decrypt(String password)
    This method will decrypt the provided string.
    encrypt(String password)
    This method will encrypt the provided string.
  • Method Details

    • 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.