Class SignatureFactory
java.lang.Object
com.aquima.interactions.foundation.security.core.SignatureFactory
The signature factory creates signers and validators for the specified version and certificates.
- Since:
- 5.1
- Author:
- m.hesselink
-
Constructor Summary
ConstructorDescriptionSignatureFactory
(EnvelopeVersion version, CertificateSet certificateSet) Create a new security factory. -
Method Summary
Modifier and TypeMethodDescriptionCreate a new signer.Create a new validator.Get the version for which this factory will generate signers and validators.
-
Constructor Details
-
SignatureFactory
Create a new security factory.- Parameters:
version
- The version for which the factory must generate signers and validatorscertificateSet
- Private and public certificates required for signing- Throws:
CryptoGraphicException
- When one or more parameters are omitted
-
-
Method Details
-
getVersion
Get the version for which this factory will generate signers and validators.- Returns:
- Version
-
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
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
-