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)

Syntax

C#
public PdfPublicKeyDecryptionHandler(
	X509Store store
)
VB
Public Sub New ( 
	store As X509Store
)

Parameters

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

Remarks

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