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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard