Click or drag to resize

Pkcs11Signer(String, String, String, String, IListByte) Constructor

Opens the token and finds the signing key, signing with the certificates given.

Namespace: ExpertPdf.Anywhere.PDFSecurity
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public Pkcs11Signer(
	string libraryPath,
	string pin,
	string tokenLabel,
	string keyLabel,
	IList<byte[]> certificates
)

Parameters

libraryPath  String
The path of the vendor's PKCS#11 library.
pin  String
The user PIN of the token.
tokenLabel  String
The label of the token; null when exactly one token is present.
keyLabel  String
The label of the private key; null when the token holds one signing key.
certificates  IListByte
The certificates of the key, each DER-encoded, the signing certificate first; null to read them from the token.
Exceptions
ExceptionCondition
SecurePdfExceptionThe library cannot be loaded, the token or the key is not found, or the login fails.
See Also