JwtParserBuilder
Configures and builds a JwtParser.
Example:
val signingKey = SigningAlgorithm.HS256.newKey()
val parser = Jwt.parser()
.verifyWith(signingKey)
.requireIssuer("myapp")
.clockSkew(30L)
.build()
val jws = parser.parse(token)Properties
The processor registry used by the built JwtParser to look up signing and encryption keys.
Functions
Configures whether tokens with alg=none (unsecured JWTs) are accepted.
Sets the acceptable clock skew when validating time-based claims (exp, nbf, iat).
Registers a JweProcessor to use for token decryption.
Disables signature verification entirely, accepting any token regardless of its signature.
Adds a validator that requires the aud claim to contain the given value.
Adds a validator that requires the named claim to equal the given value.
Adds a validator that requires the iss claim to equal the given value.
Adds a validator that requires the sub claim to equal the given value.
Delegates key look-up to the given registry before consulting this parser's own keys.
Registers a JwsProcessor to use for signature verification.