Class EncryptionFactory

  • java.lang.Object

  • public class EncryptionFactory
    extends java.lang.Object
    Factory class that initializes all of the encryption provider classes that will be used at runtime. To retrieve a particular encryption provider, call the following method:
    EncryptionFactory.getInstance().getProvider("name of provider")

    These are the available encryption provider names and their usage.

    • ActiveProvider - This provider is responsible for encrypting and decrypting sensitive data that is stored in the database, for example, credit card data and passwords.
    • SessionProvider - This provider is responsible for encrypting and decrypting external facing data such as values in a cookie.
    • Method Detail

      • getInstance

        public static EncryptionFactory getInstance()
        This method returns an instance of the encryption factory for the application.
        An instance of the encryption factory.
      • getProvider

        public EncryptionProvider getProvider(java.lang.String name)
        Gets the implementation class of the Provider based on the specified name.
        name - The name of the provider to get.
        The encryption provider