Class SignatureFactory

java.lang.Object
com.aquima.interactions.foundation.security.core.SignatureFactory

public final class SignatureFactory extends Object
The signature factory creates signers and validators for the specified version and certificates.
Since:
5.1
Author:
m.hesselink
  • Constructor Details

    • SignatureFactory

      public SignatureFactory(EnvelopeVersion version, CertificateSet certificateSet)
      Create a new security factory.
      Parameters:
      version - The version for which the factory must generate signers and validators
      certificateSet - Private and public certificates required for signing
      Throws:
      CryptoGraphicException - When one or more parameters are omitted
  • Method Details

    • getVersion

      public EnvelopeVersion getVersion()
      Get the version for which this factory will generate signers and validators.
      Returns:
      Version
    • createValidator

      public IValidator createValidator()
      Create a new validator.
      Returns:
      IValidator implementation for the SecurityFactory.Version version
      Throws:
      CryptoGraphicException - When no validator could be created for the SecurityFactory.Version version
    • createSigner

      public ISigner createSigner()
      Create a new signer.
      Returns:
      ISigner implementation for the SecurityFactory.Version version
      Throws:
      CryptoGraphicException - When no validator could be created for the SecurityFactory.Version version