CertificateEncryptionOptions
Vue d’ensemble
CertificateEncryptionOptions Il s’agit d’une classe dans Aspose.PDF FOSS pour .NET.
Le certificat public utilisé pour chiffrer un document et le magasin clé privé nécessaire à le décrypter.
Cette classe fournit 4 méthodes pour travailler avec des objets CertificateEncryptionOptions dans les programmes .NET. Les méthodes disponibles comprennent : CertificateEncryptionOptions. Tous les membres publics sont accessibles à n’importe quelle application .NET après l’installation de la Aspose.PDF FOSS pour le package .Net. Propriétés : PfxPassword, PfxPath, PublicCertificate, StoreLocation, StoreName.
Propriétés
| Nom de | Type | Access | Description |
|---|---|---|---|
PublicCertificate | X509Certificate2 | Lire | Certificat public-clé qui a crypté le document (l’entrée du destinataire d’un dictionnaire de gestion de sécurité public clé PDF). |
PfxPath | string? | Lire | Path vers un fichier PFX/PKCS#12 qui détient la clé privée correspondant à PublicCertificate, ou null lorsque la clef privé est dans une boutique de certificats Windows. |
PfxPassword | string? | Lire | Password pour le fichier PFX à PfxPath, ou null lorsque le dossier n’est pas protégé par mot de passe. |
StoreName | StoreName? | Lire | Windows certificate store contenant la clé privée, lorsque aucun PfxPath n’est fourni. |
StoreLocation | StoreLocation? | Lire | Localisation de la boutique Windows. |
méthodes
| Signature | Description |
|---|---|
CertificateEncryptionOptions(publicCertificate: X509Certificate2, pfxPath: string, pfxPassword: string) | Appelez CertificateEncryptionOptions(publicCertificate, pfxPath, PfXPassword) sur cette instance CertificateEncryptionOptions. |
CertificateEncryptionOptions(publicCertificate: X509Certificate2, storeName: StoreName, storeLocation: StoreLocation) | Appelez CertificateEncryptionOptions(publicCertificate, storeName, StoreLocation) sur cette instance CertificateEncryptionOptions. |
CertificateEncryptionOptions(publicCertificatePath: string, pfxPath: string, pfxPassword: string) | Appelez CertificateEncryptionOptions(publicCertificatePath, pfxPat, PfXPassword) sur cette instance CertificateEncryptionOptions. |
CertificateEncryptionOptions(publicCertificatePath: string, storeName: StoreName, storeLocation: StoreLocation) | Appelez CertificateEncryptionOptions(publicCertificatePath, storeName, StoreLocation) sur cet exemple CertificateEncryptionOptions. |