PdfEncryptionRecipient Class
A recipient of a document encrypted by the public-key security handler (ISO 32000-2, 7.6.5): the certificate whose private key opens the document, and the operations it allows.
public sealed class PdfEncryptionRecipientConstructors
| Name | Description |
|---|---|
| PdfEncryptionRecipient(X509Certificate2) | Initializes a new instance of the PdfEncryptionRecipient class. |
PdfEncryptionRecipient(X509Certificate2)
PdfEncryptionRecipient.csInitializes a new instance of the PdfEncryptionRecipient class.
public PdfEncryptionRecipient(X509Certificate2 certificate)Parameters
certificateX509Certificate2- The certificate of the recipient, with an RSA public key. Its private key is not needed to encrypt the document.
Exceptions
ArgumentException- The certificate does not have an RSA public key.
Properties
| Name | Description |
|---|---|
| Certificate | Gets the certificate of the recipient. |
| Permissions | Gets the operations the recipient is allowed, or null for the PdfEncryption.Permissions of the encryption. The default is null. |
Certificate
PdfEncryptionRecipient.csPermissions
PdfEncryptionRecipient.csGets the operations the recipient is allowed, or null for the PdfEncryption.Permissions of the encryption. The default is null.
public PdfPermissions? Permissions { get; init; }