Class DomainParameters

Domain parameter object (object class CKO_DOMAIN_PARAMETERS) holds public domain parameters

Hierarchy (view full)

Constructors

Properties

Object class (type)

handle: Buffer

ID of PKCS#11 object

keyType: KeyType

Type of key the domain parameters can be used to generate.

label: string

Description of the object (default empty)

lib: PKCS11

PKCS#11 module

local: boolean

true only if domain parameters were either * generated locally (i.e., on the token) with a C_GenerateKey * created with a C_CopyObject call as a copy of domain parameters which had its CKA_LOCAL attribute set to true

modifiable: boolean

true if object can be modified. Default is false

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.

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