• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class Pkcs11Module

Simplified PKCS#11 module abstraction used for token-based signing flows.

Inheritance
object
Pkcs11Module
Implements
IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
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

Implements

IDisposable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX