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 PdfEncryptionRecipient

Constructors

NameDescription
PdfEncryptionRecipient(X509Certificate2)Initializes a new instance of the PdfEncryptionRecipient class.

PdfEncryptionRecipient(X509Certificate2)

PdfEncryptionRecipient.cs

Initializes a new instance of the PdfEncryptionRecipient class.

public PdfEncryptionRecipient(X509Certificate2 certificate)

Parameters

certificate X509Certificate2
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

NameDescription
CertificateGets the certificate of the recipient.
PermissionsGets the operations the recipient is allowed, or null for the PdfEncryption.Permissions of the encryption. The default is null.

Gets the certificate of the recipient.

public X509Certificate2 Certificate { get; }

Property value

X509Certificate2

Gets the operations the recipient is allowed, or null for the PdfEncryption.Permissions of the encryption. The default is null.

public PdfPermissions? Permissions { get; init; }

Property value

PdfPermissions?