PdfPublicKeyDecryptionHandler Constructor

Creates a new decryption handler with the X.509 certificate store used by the current user.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public PdfPublicKeyDecryptionHandler()
VB
Public Sub New

Remarks

When trying to decrypt a document, the library looks for a matching certificate in the X.509 certificate store used by the current user. The first matching certificate will be used. In case there are no matching certificates in certificate store, an instance of CannotDecryptPdfException will be thrown when the handler is used to decrypt a document.

Any certificate not marked as exportable is ignored during the search for a matching certificate.

The permissions for the decrypted document might vary, depending on the matching certificate.

See Also