parseCredential

abstract suspend fun parseCredential(jsonData: String, type: CredentialType, linkSecret: String? = null, credentialMetadata: CredentialRequestMetadata?): Credential(source)

Parses the given JSON data into a verifiable credential of the specified type.

Return

The parsed credential.

Parameters

jsonData

The JSON data representing the verifiable credential.

type

The type of the verifiable credential.

linkSecret

The optional link secret for the credential.

credentialMetadata

The metadata for the credential request.