Package com.okta.jwt.impl.jjwt
Class JjwtAccessTokenVerifier
java.lang.Object
com.okta.jwt.impl.jjwt.JjwtAccessTokenVerifier
- All Implemented Interfaces:
AccessTokenVerifier
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.AccessTokenVerifier
AccessTokenVerifier.Builder -
Constructor Summary
ConstructorsConstructorDescriptionJjwtAccessTokenVerifier(String issuer, String audience, Duration leeway, io.jsonwebtoken.SigningKeyResolver signingKeyResolver) JjwtAccessTokenVerifier(String issuer, String audience, Duration leeway, io.jsonwebtoken.SigningKeyResolver signingKeyResolver, Clock clock) -
Method Summary
-
Constructor Details
-
JjwtAccessTokenVerifier
-
JjwtAccessTokenVerifier
-
-
Method Details
-
decode
Description copied from interface:AccessTokenVerifierValidates the givenaccessToken. Validates this token is valid Okta access token that has not expired.- Specified by:
decodein interfaceAccessTokenVerifier- Parameters:
accessToken- string JWT access token to validate- 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
-