PdfPkcs11Module Class
Represents a cryptographic device that stores cryptographic information and possibly performs cryptographic functions accessible through PKCS#11 application programming interface called "Cryptoki".
Cryptographic device may be implemented as a smart card, smart disk, PCMCIA card, or with some other technology, including software-only.
note
GemBox.Pdf uses Pkcs11Interop to communicate with a cryptographic device from a .NET runtime so your project must reference NuGet package Pkcs11Interop in order to use this class.
important
After you are finished using PdfPkcs11Module make sure you either dispose it or call its Close() method.
public sealed class PdfPkcs11Module : IDisposable
Public NotInheritable Class PdfPkcs11Module
Implements IDisposable
- Inheritance:
- System.ObjectPdfPkcs11Module
Implements
Constructors
PdfPkcs11Module(String, Boolean)
Initializes a new instance of the PdfPkcs11Module class using a path to the specified PKCS#11 module.
public PdfPkcs11Module(string libraryPath, bool performLocking = true)
Public Sub New(libraryPath As String, performLocking As Boolean = True)
Parameters
libraryPath
- System.String
The path to the PKCS#11 module (usually a .dll).
performLocking
- System.Boolean
If set to true (recommended option), the PKCS#11 module will be used from multi-threaded application and needs to perform locking with native OS threading model; otherwise, the PKCS#11 module will be used from single-threaded application and does not need to perform any kind of locking.
Properties
CryptokiVersion
Gets the Cryptoki interface version number.
Property Value
- System.String
The Cryptoki interface version number.
LibraryPath
Gets the path to the PKCS#11 module (usually a .dll).
Property Value
- System.String
The path to the PKCS#11 module (usually a .dll).
LibraryVersion
Gets the Cryptoki library version number.
Property Value
- System.String
The Cryptoki library version number.
ModuleDescription
Gets the description of the library.
public string ModuleDescription { get; }
Public ReadOnly Property ModuleDescription As String
Property Value
- System.String
The description of the library.
ModuleManufacturerId
Gets the ID of the Cryptoki library manufacturer.
public string ModuleManufacturerId { get; }
Public ReadOnly Property ModuleManufacturerId As String
Property Value
- System.String
The ID of the Cryptoki library manufacturer.
Tokens
Gets the tokens present in all slots of this cryptographic device.
public IList<PdfPkcs11Token> Tokens { get; }
Public ReadOnly Property Tokens As IList(Of PdfPkcs11Token)
Property Value
- System.Collections.Generic.IList<PdfPkcs11Token>
The tokens present in all slots of this cryptographic device.
Methods
Close()
Indicates that an application is finished with the Cryptoki library. It should be the last Cryptoki call made by an application.
See Also
Dispose()
Closes the PdfPkcs11Module.
See Also
ToString()
Returns a System.String that represents this PdfPkcs11Module instance.
Returns
- System.String
A System.String that represents this PdfPkcs11Module instance.
Overrides
Remarks
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).