[]
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
Gets the GcPdfDocument object that owns this object.
public GcPdfDocument Doc { get; }
Adds a certificate response for a specified signature.
public bool AddVerification(Signature signature, DocumentSecurityStore.VerificationParams prms = null)
signature
SignatureThe Signature object.
prms
DocumentSecurityStore.VerificationParamsThe DocumentSecurityStore.VerificationParams object which defines parameters used to build verification information.
Adds a certificate response for a specified signature.
public void AddVerificationCert(Signature signature, byte[] cert)
Adds a certificate response for a specified signature.
public byte[] AddVerificationCert(Signature signature, X509Certificate2 cert)
signature
SignatureThe Signature object.
cert
System.Security.Cryptography.X509Certificates.X509Certificate2The certificate.
The DER-encoded certificate.
Adds a CRL list for a specified signature.
public void AddVerificationCRL(Signature signature, byte[] crl)
Adds a CRL list for a specified signature.
public byte[] AddVerificationCRL(Signature signature, X509Certificate2 cert)
signature
SignatureThe Signature object.
cert
System.Security.Cryptography.X509Certificates.X509Certificate2The certificate used to get the CRL URL.
The DER-encoded CRL that was added, or null if CRL could not be obtained from cert
.
Adds a CRL list for a specified signature.
public byte[] AddVerificationCRL(Signature signature, string crlUri)
The DER-encoded CRL that was added, or null if CRL could not be obtained from crlUri
.
Adds an OCSP response for a specified signature.
public void AddVerificationOCSP(Signature signature, byte[] ocsp)
Adds an OCSP response for a specified signature.
public byte[] AddVerificationOCSP(Signature signature, X509Certificate2 certificate, X509Certificate2 parentCertificate, string url)
signature
SignatureThe Signature object.
certificate
System.Security.Cryptography.X509Certificates.X509Certificate2The certificate for which OCSP is requested.
parentCertificate
System.Security.Cryptography.X509Certificates.X509Certificate2The parent certificate.
url
stringThe OCSP URL. If null, it will be obtained from certificate
if possible.
The DER-encoded OCSP that was added, or null if OCSP could not be obtained.