Class AttributeCertificate

X.509 attribute certificate objects (certificate type CKC_X_509_ATTR_CERT) hold X.509 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

issuer: Buffer

DER-encoding of the attribute certificate's issuer field. This is distinct from the CKA_ISSUER attribute contained in CKC_X_509 certificates because the ASN.1 syntax and encoding are different. (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

owner: Buffer

DER-encoding of the attribute certificate's subject field. This is distinct from the CKA_SUBJECT attribute contained in CKC_X_509 certificates because the ASN.1 syntax and encoding are different.

  • Must be specified when the object is created
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)

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

types: Buffer

BER-encoding of a sequence of object identifier values corresponding to the attribute types contained in the certificate. When present, this field offers an opportunity for applications to search for a particular attribute certificate without fetching and parsing the certificate itself. (default empty)

value: Buffer

BER-encoding of the certificate

  • Must be specified when the object is created.

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