PdfPublicKeyDecryptionHandler Constructor (Stream, String)

Creates a new decryption handler using the specified stream with key store contents.

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

Syntax

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

Parameters

keyStoreStream
Type: System.IO.Stream
The stream with the PFX / PKCS #12 key store contents.
password
Type: System.String
The password to read the key store stream.

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