PdfPublicKeyDecryptionHandler Constructor (String, String)

Creates a new decryption handler using the specified key store file.

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

Syntax

C#
public PdfPublicKeyDecryptionHandler(
	string keyStorePath,
	string password
)
VB
Public Sub New ( 
	keyStorePath As String,
	password As String
)

Parameters

keyStorePath
Type: System.String
The path to the PFX / PKCS #12 key store file.
password
Type: System.String
The password to read the key store file.

Remarks

PFX files are expected to have .pfx extension. PKCS #12 files are expected to have .p12 extension.

To decrypt a document, a certificate in the key store should match a recipient specified in the document recipients collection. If there are no matching certificates in the key store, an instance of CannotDecryptPdfException will be thrown later when the handler is used to decrypt a document.

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

See Also