Represents PKCS#11 slot

Hierarchy (view full)

Constructors

Properties

firmwareVersion: Version

Version number of the slot's firmware

flags: SlotFlag

Bits flags that provide capabilities of the slot

handle: Buffer

ID of PKCS#11 object

hardwareVersion: Version

Version number of the slot's hardware

lib: PKCS11

PKCS#11 module

manufacturerID: string

ID of the slot manufacturer

module: Module

PKCS#11 module

slotDescription: string

Character-string description of the slot

Methods

  • Closes all sessions an application has with a token

    Returns void

  • Returns information about token

    Returns Token

    PKCS#11 token structure

  • Initializes a token

    Parameters

    • pin: string

      the SO's initial PIN

    • label: string = ""

      token label

    Returns string

    Token label

  • Opens a session between an application and a token in a particular slot

    Parameters

    • flags: SessionFlag = SessionFlag.SERIAL_SESSION

      Indicates the type of session

    Returns Session

    Opened session

Generated using TypeDoc