Implement DocumentSignerBase abstract class |
Host Web application must provide own implementation of base class DocumentSignerBaseTIdentification. You must create own class inherited from DocumentSignerBaseTIdentification and implement or override its methods. Recommended implementation is as async/await.
This is the recommended implementation for document signing using the ASDSoft.SignTools component. For other types of signature, it is necessary to use the base class SignerBase.
DeserializeDocumentIdentifications(TIdentification)
This method called by component infrastructure (callback) when invoked any method based on StartSignatureInProcess. Main method for implementation creating signature session by app request.
ProcessSigning(X509Certificate2, SignatureInfo)
This method called by component infrastructure (callback) when signature by the client is created and stored in document. In this method, you can save signed document do application store.
GetDocument(IDocumentLinkContent)
This method called by component infrastructure (callback) when the user clicks in client window for showing or downloading the signing document in the browser. In this method, you can return the binary content of the required signing document.
CreateContentBuilderConfiguration(String, IDocumentSignerConfiguration)
This method called by component infrastructure (callback) when invoked any method based on StartSignatureInProcess. In this method, you can override default implementation.
ConfigureX509ChainForValidation(X509Chain, X509Certificate2, SignatureRequest)
This method called by component infrastructure (callback) when a client application sends to server list of available client certificates for its filtering to only accepted certificates. In this method, you can override default implementation of configuration certificate chain validation.
ValidateCertificateExtended(X509Certificate2, SignatureRequest, String)
This method called by component infrastructure (callback) when a client application sends to server list of available client certificates for its filtering to only accepted certificates. In this method, you can add your specific custom filtering of accepted certificates.
ValidateQualifiedCertificate(X509Certificate2, EuTslStatusInfo, SignatureRequest, String)
This method called by component infrastructure (callback) when a client application sends to server list of available client certificates for its filtering to only accepted certificates. In this method, you can add your specific custom filtering of accepted qualified certificates.
OnProcessSigningEnd(String, X509Certificate2, SignatureInfo)
This method called when all signatures in session processed by ProcessSigning(X509Certificate2, SignatureInfo). Default implementation is empty.