hasClaim

Check if a credential has a specific claim.

Example:

if (credential.hasClaim("email")) {
println("Credential contains email claim")
}

Return

True if the credential subject contains the claim

Parameters

key

The claim key to check for