GemBox.Pdf
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    PdfSignatureValidationInfo Class

    Namespace:
    GemBox.Pdf.Forms
    Assembly:
    GemBox.Pdf.dll

    Represents a container that shall contain validation-related information (VRI) for one signature in the document that a given signature handler or PDF processor has used to successfully validate the given signature.

    A PdfSignatureValidationInfo shall reference:

    • a selection of certificates from the Certificates in the PdfDocumentSecurityStore applicable to the signature;
    • a selection of certificate revocation lists (CRLs) from the CertificateRevocationLists in the PdfDocumentSecurityStore applicable to the signature, if any;
    • a selection of Online Certificate Status Protocol (OCSP) responses from the OnlineCertificateStatusProtocolResponses in the PdfDocumentSecurityStore applicable to the signature.
    • C#
    • VB.NET
    public sealed class PdfSignatureValidationInfo
    Public NotInheritable Class PdfSignatureValidationInfo
    Inheritance:
    System.Object
    PdfSignatureValidationInfo

    Constructors

    PdfSignatureValidationInfo(IEnumerable<PdfCertificate>, IEnumerable<PdfCertificateRevocationList>, IEnumerable<PdfOnlineCertificateStatusProtocolResponse>)

    Initializes a new instance of the PdfSignatureValidationInfo class.

    • C#
    • VB.NET
    public PdfSignatureValidationInfo(IEnumerable<PdfCertificate> certificates, IEnumerable<PdfCertificateRevocationList> certificateRevocationLists, IEnumerable<PdfOnlineCertificateStatusProtocolResponse> onlineCertificateStatusProtocolResponses)
    Public Sub New(certificates As IEnumerable(Of PdfCertificate), certificateRevocationLists As IEnumerable(Of PdfCertificateRevocationList), onlineCertificateStatusProtocolResponses As IEnumerable(Of PdfOnlineCertificateStatusProtocolResponse))
    Parameters
    certificates
    System.Collections.Generic.IEnumerable<PdfCertificate>

    The X.509 certificates used in the validation of the signature.

    certificateRevocationLists
    System.Collections.Generic.IEnumerable<PdfCertificateRevocationList>

    The X.509 Certificate Revocation Lists (CRLs) used to determine the validity of the certificates in the chains related to the signature.

    onlineCertificateStatusProtocolResponses
    System.Collections.Generic.IEnumerable<PdfOnlineCertificateStatusProtocolResponse>

    The X.509 Online Certificate Status Protocol (OCSP) responses used to determine the validity of the certificates in the chains related to the signature.

    Exceptions
    System.ArgumentNullException

    certificates, certificateRevocationLists or onlineCertificateStatusProtocolResponses contains a null item.

    Properties

    CertificateRevocationLists

    Gets the read-only collection of X.509 Certificate Revocation Lists (CRLs) used to determine the validity of the certificates in the chains related to the signature.

    Each certificate revocation list shall also be included in CertificateRevocationLists of the PdfDocumentSecurityStore.

    • C#
    • VB.NET
    public IList<PdfCertificateRevocationList> CertificateRevocationLists { get; }
    Public ReadOnly Property CertificateRevocationLists As IList(Of PdfCertificateRevocationList)
    Property Value
    System.Collections.Generic.IList<PdfCertificateRevocationList>

    The read-only collection of X.509 Certificate Revocation Lists (CRLs) used to determine the validity of the certificates in the chains related to the signature.

    Certificates

    Gets the read-only collection of X.509 certificates used in the validation of the signature.

    Each certificate shall also be included in Certificates of the PdfDocumentSecurityStore.

    • C#
    • VB.NET
    public IList<PdfCertificate> Certificates { get; }
    Public ReadOnly Property Certificates As IList(Of PdfCertificate)
    Property Value
    System.Collections.Generic.IList<PdfCertificate>

    The read-only collection of X.509 certificates used in the validation of the signature.

    OnlineCertificateStatusProtocolResponses

    Gets the read-only collection of X.509 Online Certificate Status Protocol (OCSP) responses used to determine the validity of the certificates in the chains related to the signature.

    Each Online Certificate Status Protocol (OCSP) response shall also be included in OnlineCertificateStatusProtocolResponses of the PdfDocumentSecurityStore.

    • C#
    • VB.NET
    public IList<PdfOnlineCertificateStatusProtocolResponse> OnlineCertificateStatusProtocolResponses { get; }
    Public ReadOnly Property OnlineCertificateStatusProtocolResponses As IList(Of PdfOnlineCertificateStatusProtocolResponse)
    Property Value
    System.Collections.Generic.IList<PdfOnlineCertificateStatusProtocolResponse>

    The read-only collection of X.509 Online Certificate Status Protocol (OCSP) responses used to determine the validity of the certificates in the chains related to the signature.

    Methods

    ToString()

    Returns a System.String that represents this PdfSignatureValidationInfo instance.

    • C#
    • VB.NET
    public override string ToString()
    Public Overrides Function ToString As String
    Returns
    System.String

    A System.String that represents this PdfSignatureValidationInfo instance.

    Overrides
    System.Object.ToString()
    Remarks

    This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).

    Examples

    PAdES B-LT level example
    Digital signature examples

    See Also

    Signature VRI Dictionary
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.