Pkcs11Signer(String, String, String, String, IListByte) Constructor |
Opens the token and finds the signing key, signing with the certificates given.
Namespace: ExpertPdf.Anywhere.PDFSecurityAssembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntaxpublic Pkcs11Signer(
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.
- 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| Exception | Condition |
|---|
| SecurePdfException | The library cannot be loaded, the token or the key is not found, or the
login fails. |
See Also