CertificateEncryptionOptions
Vue d’ensemble
CertificateEncryptionOptions est une classe dans Aspose.PDF FOSS pour .NET.
Regroupe le certificat public utilisé pour chiffrer un document et le magasin de clés privées nécessaire pour le déchiffrer.
Cette classe fournit 4 méthodes pour travailler avec des objets CertificateEncryptionOptions dans les programmes .NET.
Les méthodes disponibles incluent : CertificateEncryptionOptions.
Tous les membres publics sont accessibles à toute application .NET après l’installation du package Aspose.PDF FOSS for .NET.
Propriétés : PfxPassword, PfxPath, PublicCertificate, StoreLocation, StoreName.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
PublicCertificate | X509Certificate2 | Read | Certificat à clé publique qui a chiffré le document (l’entrée Recipient d’un dictionnaire de gestionnaire de sécurité PDF à clé publique). |
PfxPath | string? | Read | Chemin vers un fichier PFX/PKCS#12 contenant la clé privée correspondant à PublicCertificate, ou null lorsque la clé privée se trouve dans un magasin de certificats Windows. |
PfxPassword | string? | Read | Mot de passe du fichier PFX situé à PfxPath, ou null lorsque le fichier n’est pas protégé par un mot de passe. |
StoreName | StoreName? | Read | Magasin de certificats Windows contenant la clé privée, lorsqu’aucun PfxPath n’est fourni. |
StoreLocation | StoreLocation? | Read | Emplacement du magasin de certificats Windows. |
Méthodes
| Signature | Description |
|---|---|
CertificateEncryptionOptions(publicCertificate: X509Certificate2, pfxPath: string, pfxPassword: string) | Appelle CertificateEncryptionOptions(publicCertificate, pfxPath, pfxPassword) sur cette instance CertificateEncryptionOptions. |
CertificateEncryptionOptions(publicCertificate: X509Certificate2, storeName: StoreName, storeLocation: StoreLocation) | Appelle CertificateEncryptionOptions(publicCertificate, storeName, storeLocation) sur cette instance CertificateEncryptionOptions. |
CertificateEncryptionOptions(publicCertificatePath: string, pfxPath: string, pfxPassword: string) | Appelle CertificateEncryptionOptions(publicCertificatePath, pfxPath, pfxPassword) sur cette instance CertificateEncryptionOptions. |
CertificateEncryptionOptions(publicCertificatePath: string, storeName: StoreName, storeLocation: StoreLocation) | Appelle CertificateEncryptionOptions(publicCertificatePath, storeName, storeLocation) sur cette instance CertificateEncryptionOptions. |