Parser

class Parser(timeLeewaySeconds: Long = 300, epochMillisecondsForValidation: Long? = null)

Parses Verifiable Credentials and Verifiable Presentations. Does not verify the cryptographic authenticity of the data. Does not verify the revocation status of the data.

Constructors

Link copied to clipboard
fun Parser(timeLeewaySeconds: Long = 300, epochMillisecondsForValidation: Long? = null)

Types

Link copied to clipboard
sealed class ParseVcResult
Link copied to clipboard
sealed class ParseVpResult

Functions

Link copied to clipboard

Parses a Verifiable Credential in JWS format

Link copied to clipboard
fun parseVpJws(it: String, challenge: String, localKeyId: String): Parser.ParseVpResult

Parses a Verifiable Presentation in JWS format

fun parseVpJws(it: String, vpJws: VerifiablePresentationJws, kid: String, challenge: String, localKeyId: String): Parser.ParseVpResult