[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Security.DocumentSecurityStore

Class DocumentSecurityStore

Namespace
GrapeCity.Documents.Pdf.Security
Assembly
GcDocs.Pdf.dll

Represents a Document Security Store (DSS). Holds information that can be used to verify signatures offline. See PDF specification for details.

public class DocumentSecurityStore : PdfDictWrapper, IPdfDict
Inheritance
object
DocumentSecurityStore
Implements
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Extension Methods

Properties

Doc

Gets the GcPdfDocument object that owns this object.

public GcPdfDocument Doc { get; }

Property Value

GcPdfDocument

Methods

AddVerification(Signature, VerificationParams)

Adds a certificate response for a specified signature.

public bool AddVerification(Signature signature, DocumentSecurityStore.VerificationParams prms = null)

Parameters

signature Signature

The Signature object.

prms DocumentSecurityStore.VerificationParams

The DocumentSecurityStore.VerificationParams object which defines parameters used to build verification information.

Returns

bool

AddVerificationCert(Signature, byte[])

Adds a certificate response for a specified signature.

public void AddVerificationCert(Signature signature, byte[] cert)

Parameters

signature Signature

The Signature object.

cert byte[]

The DER-encoded certificate.

AddVerificationCert(Signature, X509Certificate2)

Adds a certificate response for a specified signature.

public byte[] AddVerificationCert(Signature signature, X509Certificate2 cert)

Parameters

signature Signature

The Signature object.

cert System.Security.Cryptography.X509Certificates.X509Certificate2

The certificate.

Returns

byte[]

The DER-encoded certificate.

AddVerificationCRL(Signature, byte[])

Adds a CRL list for a specified signature.

public void AddVerificationCRL(Signature signature, byte[] crl)

Parameters

signature Signature

The Signature object.

crl byte[]

The DER-encoded CRL.

AddVerificationCRL(Signature, X509Certificate2)

Adds a CRL list for a specified signature.

public byte[] AddVerificationCRL(Signature signature, X509Certificate2 cert)

Parameters

signature Signature

The Signature object.

cert System.Security.Cryptography.X509Certificates.X509Certificate2

The certificate used to get the CRL URL.

Returns

byte[]

The DER-encoded CRL that was added, or null if CRL could not be obtained from cert.

AddVerificationCRL(Signature, string)

Adds a CRL list for a specified signature.

public byte[] AddVerificationCRL(Signature signature, string crlUri)

Parameters

signature Signature

The Signature object.

crlUri string

The URI containing CRL.

Returns

byte[]

The DER-encoded CRL that was added, or null if CRL could not be obtained from crlUri.

AddVerificationOCSP(Signature, byte[])

Adds an OCSP response for a specified signature.

public void AddVerificationOCSP(Signature signature, byte[] ocsp)

Parameters

signature Signature

The Signature object.

ocsp byte[]

The DER-encoded OCSP response.

AddVerificationOCSP(Signature, X509Certificate2, X509Certificate2, string)

Adds an OCSP response for a specified signature.

public byte[] AddVerificationOCSP(Signature signature, X509Certificate2 certificate, X509Certificate2 parentCertificate, string url)

Parameters

signature Signature

The Signature object.

certificate System.Security.Cryptography.X509Certificates.X509Certificate2

The certificate for which OCSP is requested.

parentCertificate System.Security.Cryptography.X509Certificates.X509Certificate2

The parent certificate.

url string

The OCSP URL. If null, it will be obtained from certificate if possible.

Returns

byte[]

The DER-encoded OCSP that was added, or null if OCSP could not be obtained.