SignatureValidated Event
Reports the signature validation result.
Syntax
public open class DefaultSamlreaderEventListener : SamlreaderEventListener { ... public override fun signatureValidated(e: SamlreaderSignatureValidatedEvent) {} ... } public class SamlreaderSignatureValidatedEvent { 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:
xsvValid | 0 | |
xsvUnknown | 1 | |
xsvCorrupted | 2 | |
xsvSignerNotFound | 3 | |
xsvFailure | 4 | |
xsvReferenceCorrupted | 5 |