Class WtlsCertificate

WTLS certificate objects (certificate type CKC_WTLS) hold WTLS public key certificates

Hierarchy (view full)

Constructors

Properties

authorityKeyIdentifier: Buffer

SHA-1 hash of the issuer public key (default empty)

  • Can only be empty if CKA_URL is empty.

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

id: Buffer

Key identifier for public/private key pair (default empty)

issuer: Buffer

WTLS-encoding (Identifier type) of the certificate issuer (default empty)

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.

serialNumber: Buffer

DER-encoding of the certificate serial number (default empty)

session: Session

PKCS#11 session

startDate: Date

Start date for the certificate (default empty)

subject: Buffer

WTLS-encoding (Identifier type) of the certificate subject

  • Must be specified when the object is created.
  • Can only be empty if CKA_VALUE is empty.
subjectKeyIdentifier: Buffer

SHA-1 hash of the subject public key (default empty)

  • Can only be empty if CKA_URL is 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

url: string

If not empty this attribute gives the URL where the complete certificate can be obtained (default empty)

  • Must be non-empty if CKA_VALUE is empty
value: Buffer

WTLS-encoding of the certificate

  • Must be specified when the object is created.
  • Must be non-empty if CKA_URL is empty.

Accessors

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

    Returns number

Methods

  • 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