Class Pkcs11Module
Simplified PKCS#11 module abstraction used for token-based signing flows.
Implements
Inherited Members
Namespace: DRIT.Pdf.Security
Assembly: DRIT.Pdf.dll
Syntax
public sealed class Pkcs11Module : IDisposable
Constructors
Pkcs11Module(string)
Create a module wrapper around a PKCS#11 library path.
Declaration
public Pkcs11Module(string libraryPath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | libraryPath |
Properties
LibraryPath
Path to the PKCS#11/Cryptoki library.
Declaration
public string LibraryPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Tokens
Registered tokens exposed by this module.
Declaration
public IReadOnlyList<Pkcs11Token> Tokens { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<Pkcs11Token> |
Methods
Dispose()
Releases resources used by the module. No unmanaged resources are held.
Declaration
public void Dispose()
RegisterToken(string, string, params DigitalId[])
Registers a software token for testing and deterministic PKCS#11 workflows.
Declaration
public Pkcs11Token RegisterToken(string tokenLabel, string pin, params DigitalId[] digitalIds)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tokenLabel | |
| string | pin | |
| DigitalId[] | digitalIds |
Returns
| Type | Description |
|---|---|
| Pkcs11Token |