requireIssuer

fun requireIssuer(iss: String, ignoreCase: Boolean = false): JwtParserBuilder(source)

Adds a validator that requires the iss claim to equal the given value.

Return

this builder for chaining

Parameters

iss

the expected issuer string

ignoreCase

when true, the comparison is case-insensitive; defaults to false

Throws

if the iss claim is absent during parsing

if the iss claim does not match the expected value