Package com.okta.jwt

Class JwtVerifiers

java.lang.Object
com.okta.jwt.JwtVerifiers

public final class JwtVerifiers extends Object
Utility class to help load implementations of IdTokenVerifier.Builder and AccessTokenVerifier.Builder.

Example usage:

 AccessTokenVerifier jwtVerifier = JwtVerifiers.accessTokenVerifierBuilder()
                                               .setIssuer(issuerUrl)
                                               .setAudience(audience)
                                               .build();
 
Since:
0.4
  • Method Details

    • idTokenVerifierBuilder

      public static IdTokenVerifier.Builder idTokenVerifierBuilder()
      Creates an instance of IdTokenVerifier.Builder.
      Returns:
      an instance of IdTokenVerifier.Builder
    • accessTokenVerifierBuilder

      public static AccessTokenVerifier.Builder accessTokenVerifierBuilder()
      Creates an instance of AccessTokenVerifier.Builder.
      Returns:
      an instance of AccessTokenVerifier.Builder