Class: StatusList2021CredentialBuilder
identity_wasm.StatusList2021CredentialBuilder
Builder type to construct valid StatusList2021Credential istances.
Table of contents
Constructors
Methods
Constructors
constructor
• new StatusList2021CredentialBuilder(status_list?
)
Creates a new StatusList2021CredentialBuilder.
Parameters
Name | Type |
---|---|
status_list? | StatusList2021 |
Methods
purpose
▸ purpose(purpose
): StatusList2021CredentialBuilder
Sets the purpose of the StatusList2021Credential that is being created.
Parameters
Name | Type |
---|---|
purpose | StatusPurpose |
Returns
StatusList2021CredentialBuilder
subjectId
▸ subjectId(id
): StatusList2021CredentialBuilder
Sets credentialSubject.id
.
Parameters
Name | Type |
---|---|
id | string |
Returns
StatusList2021CredentialBuilder
expirationDate
▸ expirationDate(time
): StatusList2021CredentialBuilder
Sets the expiration date of the credential.
Parameters
Name | Type |
---|---|
time | Timestamp |
Returns
StatusList2021CredentialBuilder
issuer
▸ issuer(issuer
): StatusList2021CredentialBuilder
Sets the issuer of the credential.
Parameters
Name | Type |
---|---|
issuer | string |
Returns
StatusList2021CredentialBuilder
context
▸ context(context
): StatusList2021CredentialBuilder
Sets the context of the credential.
Parameters
Name | Type |
---|---|
context | string |
Returns
StatusList2021CredentialBuilder
type
▸ type(t
): StatusList2021CredentialBuilder
Adds a credential type.
Parameters
Name | Type |
---|---|
t | string |
Returns
StatusList2021CredentialBuilder
proof
▸ proof(proof
): StatusList2021CredentialBuilder
Adds a credential's proof.
Parameters
Name | Type |
---|---|
proof | Proof |
Returns
StatusList2021CredentialBuilder
build
▸ build(): StatusList2021Credential
Attempts to build a valid StatusList2021Credential with the previously provided data.