Data objects (object class CKO_DATA) hold information defined by an application. Other than providing access to it, Cryptoki does not attach any special meaning to a data object

Hierarchy (view full)

Constructors

Properties

application: string

Description of the application that manages the object (default empty)

Object class (type)

handle: Buffer

ID of PKCS#11 object

label: string

Description of the object (default empty)

lib: PKCS11

PKCS#11 module

modifiable: boolean

true if object can be modified. Default is false

objectId: Buffer

DER-encoding of the object identifier indicating the data object type (default empty)

private: boolean

true if object is a private object and false if object is a public object. Default value is token-specific, and may depend on the values of other attributes of the object.

session: Session

PKCS#11 session

token: boolean

true if object is a token object and false if object is a session object. Default is false.

value: Buffer

Value of the object (default empty)

Accessors

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

    Returns number

Methods

  • Retrieves information about PKCS#11 object and fills fields

    Returns void

  • 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