Class OpenIDConnect

java.lang.Object
io.fusionauth.jwt.OpenIDConnect

public class OpenIDConnect extends Object
Helpers for OpenID Connect.
Author:
Daniel DeGroff
  • Constructor Details

    • OpenIDConnect

      public OpenIDConnect()
  • Method Details

    • at_hash

      public static String at_hash(String accessToken, Algorithm algorithm)
      Generate the hash of the Access Token specified by the OpenID Connect Core spec for the at_hash claim.
      Parameters:
      accessToken - the ASCII form of the access token
      algorithm - the algorithm to be used when encoding the Id Token
      Returns:
      a hash to be used as the at_hash claim in the Id Token claim payload
    • c_hash

      public static String c_hash(String authorizationCode, Algorithm algorithm)
      Generate the hash of the Authorization Code as specified by the OpenID Connect Core spec for the c_hash claim.
      Parameters:
      authorizationCode - the ASCII form of the authorization code
      algorithm - the algorithm to be used when encoding the Id Token
      Returns:
      a hash to be used as the c_hash claim in the Id Token claim payload