SecureBlackbox 2020 Kotlin Edition

Questions / Feedback?

SignatureValidated Event

Reports the signature validation result.

Syntax

public open class DefaultXmlverifierEventListener : XmlverifierEventListener {
  ...
  public override fun signatureValidated(e: XmlverifierSignatureValidatedEvent) {}
  ...
}

public class XmlverifierSignatureValidatedEvent {
  val issuerRDN: String?
  val serialNumber: ByteArray?
  val subjectKeyID: ByteArray?
  val validationResult: Int
}

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 Kotlin Edition - Version 20.0 [Build 8063]