Class MechanismCollection

Represents a collection of PKCS#11 mechanisms

Hierarchy (view full)

Constructors

Properties

Type for child item initialization

innerItems: any[]

List of inner items

lib: PKCS11

PKCS#11 module

slotHandle: Buffer

The ID of token's slot

Accessors

  • get length(): number
  • Returns length of collection

    Returns number

Methods

  • Returns the index of the first occurrence of a value in an array.

    Parameters

    • obj: Mechanism

      The value to locate in the array.

    • fromIndex: number = 0

      The array index at which to begin the search.

    Returns number

    Remarks

    If fromIndex is omitted, the search starts at index 0.

  • Tries to get Mechanism. Returns null if it's impossible to get mechanism

    Parameters

    • index: number

      index of an element in the collection [0..n]

    Returns null | Mechanism

Generated using TypeDoc