 |
PdfPkcs11Signer(String, String, String, String, IListByte) Constructor |
Creates a signer for a key on a PKCS#11 token, with certificates given by the caller - for a
token that holds the key but not its certificate or chain.
Namespace: SelectPdf.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.5
Syntaxpublic PdfPkcs11Signer(
string libraryPath,
string pin,
string tokenLabel,
string keyLabel,
IList<byte[]> certificates
)
Public Sub New (
libraryPath As String,
pin As String,
tokenLabel As String,
keyLabel As String,
certificates As IList(Of Byte())
)
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.
- certificates IListByte
- The certificates, each DER-encoded: the signing certificate first,
then its issuers. Null to read them from the token.
Exceptions| Exception | Condition |
|---|
| PdfDocumentException | The library could not be loaded, the token or the key
was not found, or the PIN was refused. |
See Also