W3CCredential

data class W3CCredential constructor(val credentialType: CredentialType = CredentialType.W3C, val context: Array<String>, val type: Array<String>, val _id: String, val _issuer: String, val _subject: String?, val issuanceDate: String, val expirationDate: String? = null, val credentialSchema: VerifiableCredentialTypeContainer? = null, val credentialSubject: Map<String, String>? = null, val credentialStatus: VerifiableCredentialTypeContainer? = null, val refreshService: VerifiableCredentialTypeContainer? = null, val evidence: VerifiableCredentialTypeContainer? = null, val termsOfUse: VerifiableCredentialTypeContainer? = null, val validFrom: VerifiableCredentialTypeContainer? = null, val validUntil: VerifiableCredentialTypeContainer? = null, val proof: JsonString?, val aud: Array<String> = arrayOf()) : Credential(source)

A data class representing a W3C Verifiable Credential. This data class conforms to the VerifiableCredential interface, which defines the properties and methods required for a verifiable credential. The W3CVerifiableCredential contains properties for the credential's context, type, ID, issuer, issuance date, expiration date, credential schema, credential subject, credential status, refresh service, evidence, terms of use, valid from date, valid until date, proof, and audience.

Note: The W3CVerifiableCredential is designed to work with W3C-compliant verifiable credentials.

Constructors

Link copied to clipboard
constructor(credentialType: CredentialType = CredentialType.W3C, context: Array<String>, type: Array<String>, _id: String, _issuer: String, _subject: String?, issuanceDate: String, expirationDate: String? = null, credentialSchema: VerifiableCredentialTypeContainer? = null, credentialSubject: Map<String, String>? = null, credentialStatus: VerifiableCredentialTypeContainer? = null, refreshService: VerifiableCredentialTypeContainer? = null, evidence: VerifiableCredentialTypeContainer? = null, termsOfUse: VerifiableCredentialTypeContainer? = null, validFrom: VerifiableCredentialTypeContainer? = null, validUntil: VerifiableCredentialTypeContainer? = null, proof: JsonString?, aud: Array<String> = arrayOf())

Properties

Link copied to clipboard
val _id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val claims: Array<Claim>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val expirationDate: String? = null
Link copied to clipboard
open override val id: String
Link copied to clipboard
Link copied to clipboard
open override val issuer: String
Link copied to clipboard
Link copied to clipboard
open override val properties: Map<String, *>
Link copied to clipboard
Link copied to clipboard
open override var revoked: Boolean?
Link copied to clipboard
open override val subject: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks if the current W3CCredential object is equal to the specified object.

Link copied to clipboard
open override fun hashCode(): Int

Calculates a hash code value for the current W3CCredential object.

Link copied to clipboard

Converts the current W3CCredential object to a StorableCredential object that can be stored and retrieved from a storage system.