SecureBlackbox 2020 Python Edition

Questions / Feedback?

on_signature_validated Event

Reports the signature validation result.

Syntax

class SOAPVerifierSignatureValidatedEventParams(object):
  @property
  def issuer_rdn() -> str: ...
  @property
  def serial_number() -> bytes: ...
  @property
  def subject_key_id() -> bytes: ...
  @property
  def validation_result() -> int: ...

# In class SOAPVerifier:
@property
def on_signature_validated() -> Callable[[SOAPVerifierSignatureValidatedEventParams], None]: ...
@on_signature_validated.setter
def on_signature_validated(event_hook: Callable[[SOAPVerifierSignatureValidatedEventParams], None]) -> None: ...

Remarks

This event is fired when the complete XML signature validation process is finished. IssuerRDN returns the name of the signature issuer, SerialNumber identifies the signing certificate, SubjectKeyID contains the key identifier (SecureBlackbox uses SHA-1 hash algorithm output as key identifiers). Finally, ValidationResult specifies whether signature is valid or not:

xsvValid0
xsvUnknown1
xsvCorrupted2
xsvSignerNotFound3
xsvFailure4
xsvReferenceCorrupted5

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 Python Edition - Version 20.0 [Build 8154]