Package com.okta.jwt

Interface AccessTokenVerifier

All Known Implementing Classes:
JjwtAccessTokenVerifier

public interface AccessTokenVerifier
An AccessTokenVerifier can be used to validate Okta's OAuth 2.0 access tokens client side. This implementation is Okta specific as the OAuth 2.0 rfc states that access tokens are opaque. This class is intended to help developer to create OAuth 2.0 Resource Servers.
Since:
0.4
See Also:
  • Nested Class Summary

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

    Modifier and Type
    Method
    Description
    decode(String accessToken)
    Validates the given accessToken.
  • Method Details

    • decode

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