Skip to main content
Version: 1.4

Class: StatusList2021Credential

identity_wasm.StatusList2021Credential

A parsed StatusList2021Credential.

Table of contents

Constructors

Methods

Constructors

constructor

new StatusList2021Credential(credential)

Creates a new StatusList2021Credential.

Parameters

NameType
credentialCredential

Methods

toJSON

toJSON(): Object

  • Return copy of self without private attributes.

Returns

Object

toJSON(): any

Returns

any


toString

toString(): string

Return stringified version of self.

Returns

string


id

id(): string

Returns

string


setCredentialStatus

setCredentialStatus(credential, index, revoked_or_suspended): StatusList2021Entry

Sets the given credential's status using the index-th entry of this status list. Returns the created credentialStatus.

Parameters

NameType
credentialCredential
indexnumber
revoked_or_suspendedboolean

Returns

StatusList2021Entry


purpose

purpose(): StatusPurpose

Returns the StatusPurpose of this StatusList2021Credential.

Returns

StatusPurpose


entry

entry(index): CredentialStatus

Returns the state of the index-th entry, if any.

Parameters

NameType
indexnumber

Returns

CredentialStatus


clone

clone(): StatusList2021Credential

Returns

StatusList2021Credential


fromJSON

Static fromJSON(json): StatusList2021Credential

Parameters

NameType
jsonany

Returns

StatusList2021Credential