Class VerifiableCredentialCreateOptions
-
- All Implemented Interfaces:
public final class VerifiableCredentialCreateOptionsRepresents the options available when creating a Verifiable Credential. These options allow customization of various attributes of the credential during its creation.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final List<String>contextprivate final List<String>typeprivate final DateissuanceDateprivate final DateexpirationDateprivate CredentialStatuscredentialStatusprivate final CredentialSchemacredentialSchemaprivate final List<Map<String, Object>>evidence
-
Constructor Summary
Constructors Constructor Description VerifiableCredentialCreateOptions(String id, List<String> context, List<String> type, Date issuanceDate, Date expirationDate, CredentialStatus credentialStatus, CredentialSchema credentialSchema, List<Map<String, Object>> evidence)
-
Method Summary
Modifier and Type Method Description final StringgetId()The unique identifier for the Verifiable Credential. final List<String>getContext()The context(s) defining the meaning of terms within the credential. final List<String>getType()The type(s) of the Verifiable Credential, where "VerifiableCredential" is always included as the base type. final DategetIssuanceDate()The issuance date of the credential. final DategetExpirationDate()The optional expiration date of the credential. final CredentialStatusgetCredentialStatus()Optional status information of the credential (e.g., revocation or suspension). final UnitsetCredentialStatus(CredentialStatus credentialStatus)Optional status information of the credential (e.g., revocation or suspension). final CredentialSchemagetCredentialSchema()Optional schema used to validate the credential's data structure. final List<Map<String, Object>>getEvidence()Optional array of evidence supporting the claims made in the credential. -
-
Method Detail
-
getId
final String getId()
The unique identifier for the Verifiable Credential. Optional. Defaults to
urn:uuid:{uuid}if not provided.
-
getContext
final List<String> getContext()
The context(s) defining the meaning of terms within the credential. Defaults to
https://www.w3.org/2018/credentials/v1if not provided.
-
getType
final List<String> getType()
The type(s) of the Verifiable Credential, where "VerifiableCredential" is always included as the base type.
-
getIssuanceDate
final Date getIssuanceDate()
The issuance date of the credential. Defaults to the current date and time if not provided.
-
getExpirationDate
final Date getExpirationDate()
The optional expiration date of the credential.
-
getCredentialStatus
final CredentialStatus getCredentialStatus()
Optional status information of the credential (e.g., revocation or suspension).
-
setCredentialStatus
final Unit setCredentialStatus(CredentialStatus credentialStatus)
Optional status information of the credential (e.g., revocation or suspension).
-
getCredentialSchema
final CredentialSchema getCredentialSchema()
Optional schema used to validate the credential's data structure.
-
getEvidence
final List<Map<String, Object>> getEvidence()
Optional array of evidence supporting the claims made in the credential.
-
-
-
-