Package-level declarations

Types

Link copied to clipboard
class CredentialTransformationBuilder(credential: VerifiableCredential, transformer: CredentialTransformer = CredentialTransformer())

DSL builder for credential transformations.

Link copied to clipboard
class CredentialTransformer : CredentialFormatConverter

Credential transformer for format conversion.

Link copied to clipboard
sealed interface TransformResult

Result of a credential transformation.

Functions

Link copied to clipboard

Convert CBOR bytes to credential.

Link copied to clipboard

Convert JWT string to credential.

suspend fun String.fromJwt(allowUnsecured: Boolean): VerifiableCredential

Convert JWT string to credential, accepting unsecured (alg: none) JWTs only when allowUnsecured is true.

Link copied to clipboard

Round-trip transformation: credential -> CBOR -> credential.

Link copied to clipboard

Round-trip transformation: credential -> JSON-LD -> credential.

Link copied to clipboard

Round-trip transformation: credential -> JWT -> credential.

Link copied to clipboard

Convert credential to CBOR format.

Link copied to clipboard
suspend fun JsonObject.toCredential(): VerifiableCredential

Convert JSON-LD object to credential.

Link copied to clipboard
suspend fun VerifiableCredential.toJsonLd(): JsonObject

Convert credential to JSON-LD format.

Link copied to clipboard

Convert credential to JWT format.

Link copied to clipboard

Transform credential using DSL builder.