Class CertificateFactory

java.lang.Object
com.aquima.interactions.foundation.security.cert.CertificateFactory

public final class CertificateFactory extends Object
Factory class to create certificate sets.
Since:
5.1
Author:
m.hesselink
  • Method Details

    • createReadSet

      public static CertificateSet createReadSet(IDecryptCertificateProvider provider)
      This method creates a certificate set from the supplied provider.
      Parameters:
      provider - The provider that should be used to create the certificate set.
      Returns:
      The certificate set from the supplied provider (never null).
      Throws:
      CryptoGraphicException - This exception is thrown when the certificate set could not be created.
    • createReadSet

      public static CertificateSet createReadSet(ICertificateProvider provider)
      This method creates a certificate set from the supplied provider.
      Parameters:
      provider - The provider that should be used to create the certificate set.
      Returns:
      The certificate set from the supplied provider (never null).
      Throws:
      CryptoGraphicException - This exception is thrown when the certificate set could not be created.
    • createReadRsaAesKeySet

      public static RsaAesKeySet createReadRsaAesKeySet(IDecryptCertificateProvider provider)
      This method creates a read key set from the supplied provider.
      Parameters:
      provider - The provider that should be used to create the read key set.
      Returns:
      The read key set from the supplied provider (never null).
      Throws:
      CryptoGraphicException - This exception is thrown when the read key set could not be created.
    • createReadRsaAesKeySet

      public static RsaAesKeySet createReadRsaAesKeySet(ICertificateProvider provider)
      This method creates a read key set from the supplied provider.
      Parameters:
      provider - The provider that should be used to create the read key set.
      Returns:
      The read key set from the supplied provider (never null).
      Throws:
      CryptoGraphicException - This exception is thrown when the read key set could not be created.
    • createWriteSet

      public static CertificateSet createWriteSet(IEncryptCertificateProvider provider)
      This method creates a certificate set from the supplied provider.
      Parameters:
      provider - The provider that should be used to create the certificate set.
      Returns:
      The certificate set from the supplied provider (never null).
      Throws:
      CryptoGraphicException - This exception is thrown when the certificate set could not be created.
    • createWriteRsaAesKeySet

      public static RsaAesKeySet createWriteRsaAesKeySet(IEncryptCertificateProvider provider)
      This method creates a write key set from the supplied provider.
      Parameters:
      provider - The provider that should be used to create the write key set.
      Returns:
      The write key set from the supplied provider (never null).
      Throws:
      CryptoGraphicException - This exception is thrown when the write key set could not be created.
    • createSignSet

      public static CertificateSet createSignSet(ISignCertificateProvider provider)
      This method creates a certificate set from the supplied provider.
      Parameters:
      provider - The provider that should be used to create the certificate set.
      Returns:
      The certificate set from the supplied provider (never null).
      Throws:
      CryptoGraphicException - This exception is thrown when the certificate set could not be created.
    • createSignReadOnlySet

      public static CertificateSet createSignReadOnlySet(ISignReadOnlyCertificateProvider provider)
      This method creates a certificate set from the supplied provider.
      Parameters:
      provider - The provider that should be used to create the certificate set.
      Returns:
      The certificate set from the supplied provider (never null).
      Throws:
      CryptoGraphicException - This exception is thrown when the certificate set could not be created.