Package-level declarations

Types

Link copied to clipboard

VC spec leaves the representation of a single credential open to implementations. We decided to make a "generic" one, i.e. with custom name, value and mimeType.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
data class CredentialStatus(val id: String, val type: String, val index: Long, val statusListUrl: String)

Implementation of W3C RevocationList2020 for use in a VerifiableCredential.

Link copied to clipboard
@Serializable
open class CredentialSubject(val id: String)

Base class for the subject of a VerifiableCredential, see subclasses of this class, e.g. AtomicAttributeCredential.

Link copied to clipboard
class InstantLongSerializer : KSerializer<Instant>
Link copied to clipboard
class InstantStringSerializer : KSerializer<Instant>
Link copied to clipboard
class NullableInstantLongSerializer : KSerializer<Instant?>
Link copied to clipboard
class NullableInstantStringSerializer : KSerializer<Instant?>
Link copied to clipboard

Credential representing a W3C RevocationList 2020 credential, i.e. the encodedList contains a compressed bitset representing revoked credentials.

Link copied to clipboard
Link copied to clipboard
@Serializable
data class VerifiableCredential(val id: String, val type: Array<String>, val issuer: String, val issuanceDate: Instant, val expirationDate: Instant?, val credentialStatus: CredentialStatus? = null, val credentialSubject: CredentialSubject)

The core of the W3C VC Data Model: a credential.

Link copied to clipboard
@Serializable
data class VerifiableCredentialJws(val vc: VerifiableCredential, val subject: String, val notBefore: Instant, val issuer: String, val expiration: Instant?, val jwtId: String)

JWS representation of a VerifiableCredential.

Link copied to clipboard
@Serializable
data class VerifiablePresentation(val id: String, val type: String, val verifiableCredential: Array<String>)

A Verifiable Presentation (see W3C VC Data Model), containing one or more VerifiableCredentials.

Link copied to clipboard
@Serializable
data class VerifiablePresentationJws(val vp: VerifiablePresentation, val challenge: String, val issuer: String, val audience: String, val jwtId: String)

JWS representation of a VerifiablePresentation.

Link copied to clipboard
data class VerifiablePresentationParsed(val id: String, val type: String, val verifiableCredentials: Array<VerifiableCredentialJws> = arrayOf(), val revokedVerifiableCredentials: Array<VerifiableCredentialJws> = arrayOf(), val invalidVerifiableCredentials: Array<String> = arrayOf())

Intermediate class used by at.asitplus.wallet.lib.agent.Validator.verifyVpJws when parsing a verifiable presentation.

Properties

Link copied to clipboard
val jsonSerializer: Json