SignatureValidated Event
Marks the completion of the signature validation routine.
Syntax
cadesverifier.on('SignatureValidated', [callback])
Callback
The 'callback' is called when the 'SignatureValidated' event is emited.
function(e){ }
The argument 'e' has the following properties:
e.issuerRDN e.serialNumber (buffer) e.subjectKeyID (buffer) e.validationResult
Remarks
This event is fired upon the completion of the signature validation routine, and reports the respective validation result.
Use the IssuerRDN, SerialNumber, and/or SubjectKeyID parameters to identify the signing certificate.
ValidationResult is set to 0 if the validation has been successful, or to a non-zero value in case of a validation failure.
svtValid | 0 | The signature is valid |
svtUnknown | 1 | Signature validity is unknown |
svtCorrupted | 2 | The signature is corrupted |
svtSignerNotFound | 3 | Failed to acquire the signing certificate. The signature cannot be validated. |
svtFailure | 4 | General failure |