Package web5.sdk.vc
Class CredentialStatus
-
- All Implemented Interfaces:
public final class CredentialStatusRepresents the status information of a Verifiable Credential. CredentialStatus is used to indicate the revocation or suspension status of a credential.
-
-
Field Summary
Fields Modifier and Type Field Description private Stringidprivate Stringtypeprivate StringstatusPurposeprivate StringstatusListIndexprivate StringstatusListCredential
-
Method Summary
Modifier and Type Method Description final StringgetId()The unique identifier for the credential status. final UnitsetId(String id)The unique identifier for the credential status. final StringgetType()The type(s) of the credential status. final UnitsetType(String type)The type(s) of the credential status. final StringgetStatusPurpose()The purpose of the status (e.g., "revocation" or "suspension"). final UnitsetStatusPurpose(String statusPurpose)The purpose of the status (e.g., "revocation" or "suspension"). final StringgetStatusListIndex()The index in the status list indicating the credential's position. final UnitsetStatusListIndex(String statusListIndex)The index in the status list indicating the credential's position. final StringgetStatusListCredential()The unique identifier for the Verifiable Credential that lists the status of the credential. final UnitsetStatusListCredential(String statusListCredential)The unique identifier for the Verifiable Credential that lists the status of the credential. -
-
Method Detail
-
getStatusPurpose
final String getStatusPurpose()
The purpose of the status (e.g., "revocation" or "suspension").
-
setStatusPurpose
final Unit setStatusPurpose(String statusPurpose)
The purpose of the status (e.g., "revocation" or "suspension").
-
getStatusListIndex
final String getStatusListIndex()
The index in the status list indicating the credential's position.
-
setStatusListIndex
final Unit setStatusListIndex(String statusListIndex)
The index in the status list indicating the credential's position.
-
getStatusListCredential
final String getStatusListCredential()
The unique identifier for the Verifiable Credential that lists the status of the credential.
-
setStatusListCredential
final Unit setStatusListCredential(String statusListCredential)
The unique identifier for the Verifiable Credential that lists the status of the credential.
-
-
-
-