PdfPublicKeyDecryptionHandler Constructor (X509Store)

Creates a new decryption handler with the specified certificate store.

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


public PdfPublicKeyDecryptionHandler(
	X509Store store
Public Sub New ( 
	store As X509Store


Type: System.Security.Cryptography.X509Certificates.X509Store
The certificate store to use to decrypt a document.


When trying to decrypt a document, the library looks for a matching certificate in the specified certificate store. 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