CertificateEncryptionOptions

CertificateEncryptionOptions

Overview

CertificateEncryptionOptions is a class in Aspose.PDF FOSS for .NET.

Bundles the public certificate used to encrypt a document and the private-key store needed to decrypt it.

This class provides 4 methods for working with CertificateEncryptionOptions objects in .NET programs. Available methods include: CertificateEncryptionOptions. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: PfxPassword, PfxPath, PublicCertificate, StoreLocation, StoreName.

Properties

NameTypeAccessDescription
PublicCertificateX509Certificate2ReadPublic-key certificate that encrypted the document (the Recipient entry of a PDF Public-Key security handler dictionary).
PfxPathstring?ReadPath to a PFX/PKCS#12 file holding the private key matching PublicCertificate, or null when the private key is in a Windows certificate store.
PfxPasswordstring?ReadPassword for the PFX file at PfxPath, or null when the file isn’t password-protected.
StoreNameStoreName?ReadWindows certificate store containing the private key, when no PfxPath is supplied.
StoreLocationStoreLocation?ReadWindows certificate store location.

Methods

SignatureDescription
CertificateEncryptionOptions(publicCertificate: X509Certificate2, pfxPath: string, pfxPassword: string)Calls CertificateEncryptionOptions(publicCertificate, pfxPath, pfxPassword) on this CertificateEncryptionOptions instance.
CertificateEncryptionOptions(publicCertificate: X509Certificate2, storeName: StoreName, storeLocation: StoreLocation)Calls CertificateEncryptionOptions(publicCertificate, storeName, storeLocation) on this CertificateEncryptionOptions instance.
CertificateEncryptionOptions(publicCertificatePath: string, pfxPath: string, pfxPassword: string)Calls CertificateEncryptionOptions(publicCertificatePath, pfxPath, pfxPassword) on this CertificateEncryptionOptions instance.
CertificateEncryptionOptions(publicCertificatePath: string, storeName: StoreName, storeLocation: StoreLocation)Calls CertificateEncryptionOptions(publicCertificatePath, storeName, storeLocation) on this CertificateEncryptionOptions instance.

See Also