Package com.okta.jwt.impl.jjwt
Class JjwtIdTokenVerifier
java.lang.Object
com.okta.jwt.impl.jjwt.JjwtIdTokenVerifier
- All Implemented Interfaces:
IdTokenVerifier
Classes in this `impl` implementation package may change in NON backward compatible way, and should ONLY be used as
a "runtime" dependency.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.okta.jwt.IdTokenVerifier
IdTokenVerifier.Builder
-
Constructor Summary
ConstructorDescriptionJjwtIdTokenVerifier
(String issuer, String clientId, Duration leeway, io.jsonwebtoken.SigningKeyResolver signingKeyResolver) -
Method Summary
-
Constructor Details
-
JjwtIdTokenVerifier
-
-
Method Details
-
decode
Description copied from interface:IdTokenVerifier
Validates the givenidToken
. Validates this token is valid Okta id token that has not expired.- Specified by:
decode
in interfaceIdTokenVerifier
- Parameters:
idToken
- string JWT id token to validatenonce
- ID Token nonce - nullable- Returns:
- a decoded JWT
- Throws:
JwtVerificationException
- when parsing or validation errors occur
-
buildJwtParser
protected io.jsonwebtoken.JwtParser buildJwtParser() -
decode
protected Jwt decode(String token, io.jsonwebtoken.JwtParser parser, com.okta.jwt.impl.jjwt.ClaimsValidator claimsValidator) throws JwtVerificationException - Throws:
JwtVerificationException
-