JWTCredential

data class JWTCredential constructor(val id: String, val iss: String, val sub: String?, val nbf: Long?, val exp: Long?, val jti: String?, val aud: Array<String>?, val originalJWTString: String?, var verifiablePresentation: JWTVerifiablePresentation? = null, var verifiableCredential: JWTVerifiableCredential? = null, var nonce: String? = null) : Credential, JWTPayload, ProvableCredential(source)

Represents a JSON Web Token (JWT) credential.

This class provides a way to parse and extract information from a JWT string. It implements the Credential interface and provides implementations for all its properties and functions.

Constructors

Link copied to clipboard
constructor(id: String, iss: String, sub: String?, nbf: Long?, exp: Long?, jti: String?, aud: Array<String>?, originalJWTString: String?, verifiablePresentation: JWTVerifiablePresentation? = null, verifiableCredential: JWTVerifiableCredential? = null, nonce: String? = null)

Types

Link copied to clipboard

AudSerializer is a custom serializer for serializing and deserializing JSON arrays of strings.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open override val claims: Array<Claim>
Link copied to clipboard
open override val exp: Long?
Link copied to clipboard
open override val id: String
Link copied to clipboard
open override val iss: String
Link copied to clipboard
open override val issuer: String
Link copied to clipboard
open override val jti: String?
Link copied to clipboard
open override val nbf: Long?
Link copied to clipboard
Link copied to clipboard
open override val originalJWTString: String?
Link copied to clipboard
open override val properties: Map<String, Any?>
Link copied to clipboard
open override var revoked: Boolean?
Link copied to clipboard
open override val sub: String?
Link copied to clipboard
open override val subject: String?
Link copied to clipboard
@SerialName(value = "vc")
open override var verifiableCredential: JWTVerifiableCredential?
Link copied to clipboard

Functions

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

Compares this JWTCredential with the specified object for equality.

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

Calculates the hash code value for the object.

Link copied to clipboard
open suspend override fun presentation(request: ByteArray, options: List<CredentialOperationsOptions>): String
Link copied to clipboard

Converts the current instance of JWTCredential to a StorableCredential.