Class OIDCTokenResponseParser

java.lang.Object
com.nimbusds.openid.connect.sdk.OIDCTokenResponseParser

public class OIDCTokenResponseParser extends Object
Parser of OpenID Connect token endpoint response messages.

Related specifications:

  • OpenID Connect Core 1.0, sections 3.1.3.3 and 3.1.3.4.
  • Method Details

    • parse

      public static TokenResponse parse(net.minidev.json.JSONObject jsonObject) throws ParseException
      Parses an OpenID Connect token response or token error response from the specified JSON object.
      Parameters:
      jsonObject - The JSON object to parse. Must not be null.
      Returns:
      The OpenID Connect token response or token error response.
      Throws:
      ParseException - If the JSON object couldn't be parsed to a token response.
    • parse

      public static TokenResponse parse(HTTPResponse httpResponse) throws ParseException
      Parses an OpenID Connect token response or token error response from the specified HTTP response.
      Parameters:
      httpResponse - The HTTP response. Must not be null.
      Returns:
      The OpenID Connect token response or token error response.
      Throws:
      ParseException - If the HTTP response couldn't be parsed to a token response.