Package com.okta.jwt

Interface IdTokenVerifier

All Known Implementing Classes:
JjwtIdTokenVerifier

public interface IdTokenVerifier
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Builder interface used to simplify construction of a IdTokenVerifier.
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(String idToken, String nonce)
    Validates the given idToken.
  • Method Details

    • decode

      Jwt decode(String idToken, String nonce) throws JwtVerificationException
      Validates the given idToken. Validates this token is valid Okta id token that has not expired.
      Parameters:
      idToken - string JWT id token to validate
      nonce - ID Token nonce - nullable
      Returns:
      a decoded JWT
      Throws:
      JwtVerificationException - when parsing or validation errors occur