Package org.faceless.publisher.ext
Interface SignatureExtension
- All Superinterfaces:
ReportFactoryExtension
- All Known Implementing Classes:
DefaultSignatureExtension,GlobalSignSignatureExtension
A subtype of ReportFactoryExtension that should be implemented
to add support for particular types of digital signature
-
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.faceless.publisher.type.FormSignatureResource resource, FormSignature sig) Sign the signaturevoidprepare(org.faceless.publisher.type.FormSignatureResource resource) If this object returned true fromsupports(org.faceless.publisher.type.FormSignatureResource), this method is called to prepare the signature.booleansupports(org.faceless.publisher.type.FormSignatureResource resource) Return true if this SignatureExtension supports the specified Signature type.Methods inherited from interface org.faceless.publisher.ext.ReportFactoryExtension
configure, load, register, register, unregister, unregister
-
Method Details
-
supports
boolean supports(org.faceless.publisher.type.FormSignatureResource resource) Return true if this SignatureExtension supports the specified Signature type. -
prepare
void prepare(org.faceless.publisher.type.FormSignatureResource resource) If this object returned true fromsupports(org.faceless.publisher.type.FormSignatureResource), this method is called to prepare the signature. This may involve validating, setting default attributes etc. -
apply
void apply(org.faceless.publisher.type.FormSignatureResource resource, FormSignature sig) throws GeneralSecurityException, IOException Sign the signature- Throws:
GeneralSecurityExceptionIOException
-