 |
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.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.5
Syntaxpublic PdfPkcs11Signer(
string libraryPath,
string pin,
string tokenLabel,
string keyLabel
)
Public Sub New (
libraryPath As String,
pin As String,
tokenLabel As String,
keyLabel As String
)
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| Exception | Condition |
|---|
| PdfDocumentException | The 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