Class JjwtAccessTokenVerifier

java.lang.Object
com.okta.jwt.impl.jjwt.JjwtAccessTokenVerifier
All Implemented Interfaces:
com.okta.jwt.AccessTokenVerifier

public class JjwtAccessTokenVerifier extends Object implements com.okta.jwt.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

    com.okta.jwt.AccessTokenVerifier.Builder
  • Constructor Summary

    Constructors
    Constructor
    Description
    JjwtAccessTokenVerifier(String issuer, String audience, java.time.Duration leeway, io.jsonwebtoken.SigningKeyResolver signingKeyResolver)
     
    JjwtAccessTokenVerifier(String issuer, String audience, java.time.Duration leeway, io.jsonwebtoken.SigningKeyResolver signingKeyResolver, java.time.Clock clock)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected io.jsonwebtoken.JwtParser
     
    com.okta.jwt.Jwt
    decode(String accessToken)
     
    protected com.okta.jwt.Jwt
    decode(String token, io.jsonwebtoken.JwtParser parser, com.okta.jwt.impl.jjwt.ClaimsValidator claimsValidator)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JjwtAccessTokenVerifier

      public JjwtAccessTokenVerifier(String issuer, String audience, java.time.Duration leeway, io.jsonwebtoken.SigningKeyResolver signingKeyResolver)
    • JjwtAccessTokenVerifier

      public JjwtAccessTokenVerifier(String issuer, String audience, java.time.Duration leeway, io.jsonwebtoken.SigningKeyResolver signingKeyResolver, java.time.Clock clock)
  • Method Details

    • decode

      public com.okta.jwt.Jwt decode(String accessToken) throws com.okta.jwt.JwtVerificationException
      Specified by:
      decode in interface com.okta.jwt.AccessTokenVerifier
      Throws:
      com.okta.jwt.JwtVerificationException
    • buildJwtParser

      protected io.jsonwebtoken.JwtParser buildJwtParser()
    • decode

      protected com.okta.jwt.Jwt decode(String token, io.jsonwebtoken.JwtParser parser, com.okta.jwt.impl.jjwt.ClaimsValidator claimsValidator) throws com.okta.jwt.JwtVerificationException
      Throws:
      com.okta.jwt.JwtVerificationException