KeylessSdJwtVcCredential

Constructors

Link copied to clipboard
constructor(document: Document)

Constructs a Credential from serialized data.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val credentialType: String

Identifies credential type.

Link copied to clipboard

The Document that the credential belongs to.

Link copied to clipboard
lateinit var domain: String

The domain of the credential.

Link copied to clipboard
Link copied to clipboard

Indicates whether the credential has been certified yet.

Link copied to clipboard

The issuer-provided data associated with the credential.

Link copied to clipboard

How many times the credential has been used in an identity presentation.

Link copied to clipboard
val validFrom: Instant

The point in time the issuer-provided data is valid from.

Link copied to clipboard
val validUntil: Instant

The point in time the issuer-provided data is valid until.

Link copied to clipboard
open lateinit override var vct: String

The Verifiable Credential Type - or vct - as defined in section 3.2.2.1.1 of draft-ietf-oauth-sd-jwt-vc-03 (https://datatracker.ietf.org/doc/draft-ietf-oauth-sd-jwt-vc/)

Functions

Link copied to clipboard
open override fun addSerializedData(builder: MapBuilder<CborBuilder>)

Method which can be overridden by Credential subclasses to add any additional information when serializing a credential.

Link copied to clipboard
suspend fun addToDocument()
Link copied to clipboard
open suspend fun certify(issuerProvidedAuthenticationData: ByteArray, validFrom: Instant, validUntil: Instant)

Certifies the credential.

Link copied to clipboard
open suspend override fun deserialize(dataItem: DataItem)

Initialize this object using serialized data.

Link copied to clipboard
open override fun getClaims(documentTypeRepository: DocumentTypeRepository?): List<JsonClaim>

Gets the claims in the credential.

Link copied to clipboard
open fun getClaimsImpl(documentTypeRepository: DocumentTypeRepository?): List<JsonClaim>
Link copied to clipboard
suspend fun increaseUsageCount()

Increases usage count of the credential.

Link copied to clipboard
open suspend fun isInvalidated(): Boolean

Indicates whether the credential has been invalidated.

Link copied to clipboard
suspend fun replacementForDeleted()