Class JjwtIdTokenVerifier

java.lang.Object
com.okta.jwt.impl.jjwt.JjwtIdTokenVerifier
All Implemented Interfaces:
com.okta.jwt.IdTokenVerifier

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

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

    Constructors
    Constructor
    Description
    JjwtIdTokenVerifier(String issuer, String clientId, java.time.Duration leeway, io.jsonwebtoken.SigningKeyResolver signingKeyResolver)
     
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    • JjwtIdTokenVerifier

      public JjwtIdTokenVerifier(String issuer, String clientId, java.time.Duration leeway, io.jsonwebtoken.SigningKeyResolver signingKeyResolver)
  • Method Details

    • decode

      public com.okta.jwt.Jwt decode(String idToken, String nonce) throws com.okta.jwt.JwtVerificationException
      Specified by:
      decode in interface com.okta.jwt.IdTokenVerifier
      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