GemBox.Pdf
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    PdfPkcs11Token Class

    Namespace:
    GemBox.Pdf.Security
    Assembly:
    GemBox.Pdf.dll

    Represents the logical view of a cryptographic device defined by Cryptoki.

    Various objects can be stored on a token. These include data, certificates and keys.

    Stored objects can be accessed and cryptographic functions performed only after the session (a logical connection between an application and a token) is opened.

    • C#
    • VB.NET
    public sealed class PdfPkcs11Token
    Public NotInheritable Class PdfPkcs11Token
    Inheritance:
    System.Object
    PdfPkcs11Token

    Properties

    DigitalIds

    Gets the digital IDs contained on this token.

    • C#
    • VB.NET
    public IList<PdfPkcs11DigitalId> DigitalIds { get; }
    Public ReadOnly Property DigitalIds As IList(Of PdfPkcs11DigitalId)
    Property Value
    System.Collections.Generic.IList<PdfPkcs11DigitalId>

    The digital IDs contained on this token.

    Model

    Gets the model of the device.

    • C#
    • VB.NET
    public string Model { get; }
    Public ReadOnly Property Model As String
    Property Value
    System.String

    The model of the device.

    ModuleManufacturerId

    Gets the ID of the device manufacturer.

    • C#
    • VB.NET
    public string ModuleManufacturerId { get; }
    Public ReadOnly Property ModuleManufacturerId As String
    Property Value
    System.String

    The ID of the device manufacturer.

    SerialNumber

    Gets the serial number of the device.

    • C#
    • VB.NET
    public string SerialNumber { get; }
    Public ReadOnly Property SerialNumber As String
    Property Value
    System.String

    The serial number of the device.

    TokenLabel

    Gets the application-defined label, assigned during token initialization.

    • C#
    • VB.NET
    public string TokenLabel { get; }
    Public ReadOnly Property TokenLabel As String
    Property Value
    System.String

    The application-defined label, assigned during token initialization.

    Methods

    Login(String)

    Logs a user into a token.

    • C#
    • VB.NET
    public void Login(string pin)
    Public Sub Login(pin As String)
    Parameters
    pin
    System.String

    The user's Personal Identification Number (PIN).

    See Also
    5.6.8 C_Login

    Logout()

    Logs a user out from a token.

    • C#
    • VB.NET
    public void Logout()
    Public Sub Logout
    See Also
    5.6.10 C_Logout

    ToString()

    Returns a System.String that represents this PdfPkcs11Module instance.

    • C#
    • VB.NET
    public override string ToString()
    Public Overrides Function ToString As String
    Returns
    System.String

    A System.String that represents this PdfPkcs11Module instance.

    Overrides
    System.Object.ToString()
    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).

    Examples

    PKCS#11 (Cryptoki) digital signature example
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.