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
| Name | Type | Access | Description |
|---|---|---|---|
PublicCertificate | X509Certificate2 | Read | Public-key certificate that encrypted the document (the Recipient entry of a PDF Public-Key security handler dictionary). |
PfxPath | string? | Read | Path to a PFX/PKCS#12 file holding the private key matching PublicCertificate, or null when the private key is in a Windows certificate store. |
PfxPassword | string? | Read | Password for the PFX file at PfxPath, or null when the file isn’t password-protected. |
StoreName | StoreName? | Read | Windows certificate store containing the private key, when no PfxPath is supplied. |
StoreLocation | StoreLocation? | Read | Windows certificate store location. |
Methods
| Signature | Description |
|---|---|
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. |