Class: StatusList2021Credential
identity_wasm.StatusList2021Credential
A parsed StatusList2021Credential.
Table of contents
Constructors
Methods
Constructors
constructor
• new StatusList2021Credential(credential
)
Creates a new StatusList2021Credential.
Parameters
Name | Type |
---|---|
credential | Credential |
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
Name | Type |
---|---|
credential | Credential |
index | number |
revoked_or_suspended | boolean |
Returns
purpose
▸ purpose(): StatusPurpose
Returns the StatusPurpose of this StatusList2021Credential.
Returns
entry
▸ entry(index
): CredentialStatus
Returns the state of the index
-th entry, if any.
Parameters
Name | Type |
---|---|
index | number |
Returns
clone
▸ clone(): StatusList2021Credential
Returns
fromJSON
▸ Static
fromJSON(json
): StatusList2021Credential
Parameters
Name | Type |
---|---|
json | any |