Click or drag to resize
Pdf Library for .NET

PdfPkcs11Signer(String, String, String, String) Constructor

Creates a signer for a key on a PKCS#11 token, reading its certificate from the token.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.5
Syntax
public PdfPkcs11Signer(
	string libraryPath,
	string pin,
	string tokenLabel,
	string keyLabel
)

Parameters

libraryPath  String
The path of the vendor's PKCS#11 library.
pin  String
The user PIN of the token. Null when the device takes the PIN itself, on its own keypad.
tokenLabel  String
The label of the token. Null or empty when exactly one token is present.
keyLabel  String
The label of the private key. Null or empty when the token holds exactly one private key.
Exceptions
ExceptionCondition
PdfDocumentExceptionThe library could not be loaded, the token or the key was not found, the PIN was refused, or the token holds no certificate for the key.
See Also