Class Certificate

Certificate objects (object class CKO_CERTIFICATE) hold public-key or attribute certificates

Hierarchy (view full)

Constructors

Properties

Categorization of the certificate

checkValue: Buffer

Checksum

Object class (type)

endDate: Date

End date for the certificate (default empty)

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

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

startDate: Date

Start date for the certificate (default empty)

token: boolean

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

trusted: boolean

The certificate can be trusted for the application that it was created.

Type of certificate

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

  • 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

Generated using TypeDoc