get

operator fun <T : Any> CborMap.get(claim: WebTokenClaim<T>): T?

Extract claim value from CBOR map

Receiver

map that holds the claim (typically CWT body)

Return

claim value or null if the map does not contain this claim

Parameters

claim

claim to query


operator fun <T : Any> JsonObject.get(claim: WebTokenClaim<T>): T?

Extract claim value from a JSON object

Receiver

object that holds the claim (typically JWT body)

Return

claim value or null if the object does not contain this claim

Parameters

claim

claim to query