Class AppServerAwareFactory

java.lang.Object
com.aquima.interactions.foundation.security.util.AppServerAwareFactory

public final class AppServerAwareFactory extends Object
Application server aware factory. Depending on the application server, different factories are returned, or the way factories are instantiated differs.
Since:
5.1
Author:
m.hesselink
  • Method Details

    • getRsaKeyFactory

      public static KeyFactory getRsaKeyFactory()
      Get the RSA key factory.
      Returns:
      The factory
      Throws:
      CryptoGraphicException - This exception is thrown when no key factory could be located.
    • getKeyFactory

      public static KeyFactory getKeyFactory()
      Get the DSA key factory.
      Returns:
      The factory
      Throws:
      CryptoGraphicException - This exception is thrown when no key factory could be located.
    • getSignatureFactory

      public static Signature getSignatureFactory()
      Get the DSA signature factory.
      Returns:
      the DSA signature factory.
      Throws:
      CryptoGraphicException - This exception is thrown when no signature could be located.
    • getTripleDesProvider

      public static Cipher getTripleDesProvider()
      This method returns the triple-DES cipher.
      Returns:
      the triple-DES cipher.
      Throws:
      CryptoGraphicException - This exception is thrown when the triple-DES algorithm is not available.