SecureBlackbox 2020 .NET Edition

Questions / Feedback?

CountersignatureFound Event

Signifies the start of countersignature validation.

Syntax

public event OnCountersignatureFoundHandler OnCountersignatureFound;

public delegate void OnCountersignatureFoundHandler(object sender, CadesverifierCountersignatureFoundEventArgs e);

public class CadesverifierCountersignatureFoundEventArgs : EventArgs {
  public string IssuerRDN { get; }
  public byte[] SerialNumber { get; }
  public byte[] SubjectKeyID { get; }
  public bool CertFound { get; }
  public bool ValidateSignature { get; set; }
  public bool ValidateChain { get; set; }
}
Public Event OnCountersignatureFound As OnCountersignatureFoundHandler

Public Delegate Sub OnCountersignatureFoundHandler(sender As Object, e As CadesverifierCountersignatureFoundEventArgs)

Public Class CadesverifierCountersignatureFoundEventArgs Inherits EventArgs
  Public ReadOnly Property IssuerRDN As String
  Public ReadOnly Property SerialNumber As Byte()
  Public ReadOnly Property SubjectKeyID As Byte()
  Public ReadOnly Property CertFound As Boolean
  Public Property ValidateSignature As Boolean
  Public Property ValidateChain As Boolean
End Class

Remarks

This event tells the application that countersignature validation is about to start, and provides the details about the countersigner's certificate via its IssuerRDN, SerialNumber, and SubjectKeyID parameters. It fires for every countersignature located in the verified document or message.

The CertFound is set to True if the component has found the needed certificate in one of the known locations, and to False otherwise, in which case you must provide it manually via KnownCertificates property.

Signature and countersignature validation consists of two independent stages: cryptographic signature validation and chain validation. Separate validation results are reported for each, with SignatureValidationResult and ChainValidationResult properties respectively.

Use the ValidateSignature and ValidateChain parameters to tell the verifier which stages to include in the validation.

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