Class: RevocationTimeframeStatus
identity_wasm.RevocationTimeframeStatus
Information used to determine the current status of a Credential.
Table of contents
Constructors
Methods
Constructors
constructor
• new RevocationTimeframeStatus(id, index, duration, start_validity?)
Creates a new RevocationTimeframeStatus.
Parameters
| Name | Type |
|---|---|
id | string |
index | number |
duration | Duration |
start_validity? | null | Timestamp |
Methods
toJSON
▸ toJSON(): Object
- Return copy of self without private attributes.
Returns
Object
▸ toJSON(): any
Serializes this to a JSON object.
Returns
any
toString
▸ toString(): string
Return stringified version of self.
Returns
string
clone
▸ clone(): RevocationTimeframeStatus
Deep clones the object.
Returns
fromJSON
▸ Static fromJSON(json): RevocationTimeframeStatus
Deserializes an instance from a JSON object.
Parameters
| Name | Type |
|---|---|
json | any |
Returns
startValidityTimeframe
▸ startValidityTimeframe(): Timestamp
Get startValidityTimeframe value.
Returns
Timestamp
endValidityTimeframe
▸ endValidityTimeframe(): Timestamp
Get endValidityTimeframe value.
Returns
Timestamp
id
▸ id(): string
Return the URL for the RevocationBitmapStatus.
Returns
string
index
▸ index(): undefined | number
Return the index of the credential in the issuer's revocation bitmap
Returns
undefined | number