Class SessionObject

Represents a PKCS#11 session object

Hierarchy (view full)

Constructors

Properties

Object class (type)

handle: Buffer

ID of PKCS#11 object

lib: PKCS11

PKCS#11 module

session: Session

PKCS#11 session

Accessors

  • get size(): number
  • Gets the size of an object in bytes

    Returns number

Methods

  • Destroys an object

    Returns void

  • Returns attribute value

    Parameters

    • type: number

      Attribute type

    Returns Buffer

    Attribute value in Buffer format

  • Returns attribute value

    Parameters

    Returns any

    Attribute value. Depends on the attribute name

  • Returns a list of attributes

    Parameters

    • attrs: ITemplate

      The list of attributes for receiving

    Returns ITemplate

    The list of attributes

  • Alias for setAttribute

    Parameters

    • type: number
    • value:
          | string
          | number
          | boolean
          | Buffer

    Returns void

  • Parameters

    • name: string
    • value: any

    Returns void

  • Sets attribute value

    Parameters

    • type: number

      Attribute type

    • value:
          | string
          | number
          | boolean
          | Buffer

      Attribute value

    Returns void

  • Sets attribute value

    Parameters

    • name: string

      Attribute name. See ITemplate

    • value: any

      Attribute value. Depends on attribute name

    Returns void

  • Sets attributes from the list of attributes

    Parameters

    Returns void