Click or drag to resize

PdfDigitalId(String, String) Constructor

Initializes a new instance of the PdfDigitalId class from a file with the specified file name and the password protecting the private key.

The most common format for such files is a PKCS#12 file, which uses .pfx or .p12 file extension and is a password protected storage container for digital IDs containing the public key (Certificate) and the associated private key.


Namespace: SautinSoft.Pdf.Security
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2026.5.5
Syntax
public PdfDigitalId(
	string fileName,
	string password
)

Parameters

fileName  String
The name of a digital ID file that contains the public key (Certificate) and the associated private key.
password  String
The password protecting the private key.
Exceptions
ExceptionCondition
ArgumentNullExceptionfileName is .
InvalidOperationExceptionDigital ID doesn't have a private key.
See Also