on_countersignature_validated Event
Reports the completion of countersignature validation.
Syntax
class CAdESVerifierCountersignatureValidatedEventParams(object): @property def issuer_rdn() -> str: ... @property def serial_number() -> bytes: ... @property def subject_key_id() -> bytes: ... @property def validation_result() -> int: ... # In class CAdESVerifier: @property def on_countersignature_validated() -> Callable[[CAdESVerifierCountersignatureValidatedEventParams], None]: ... @on_countersignature_validated.setter def on_countersignature_validated(event_hook: Callable[[CAdESVerifierCountersignatureValidatedEventParams], None]) -> None: ...
Remarks
This event marks the completion of a countersignature validation process.
Use IssuerRDN, SerialNumber, and/or SubjectKeyID to identify the signing certificate.
When validation is successful, ValidationResult returns 0. Any other value reports a failure.
cvtValid | 0 | The chain is valid |
cvtValidButUntrusted | 1 | The chain is valid, but the root certificate is not trusted |
cvtInvalid | 2 | The chain is not valid (some of certificates are revoked, expired, or contain an invalid signature) |
cvtCantBeEstablished | 3 | The validity of the chain cannot be established because of missing or unavailable validation information (certificates, CRLs, or OCSP responses) |