com.nimbusds.openid.connect.sdk
Class OIDCTokenResponseParser

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

public class OIDCTokenResponseParser
extends Object

Parser of OpenID Connect token endpoint response messages.

Related specifications:

Author:
Vladimir Dzhuvinov

Method Summary
static OIDCTokenResponse parse(HTTPResponse httpResponse)
          Parses an OpenID Connect access token response or token error response from the specified HTTP response.
static OIDCTokenResponse parse(net.minidev.json.JSONObject jsonObject)
          Parses an OpenID Connect access token response or token error response from the specified JSON object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static OIDCTokenResponse parse(net.minidev.json.JSONObject jsonObject)
                               throws ParseException
Parses an OpenID Connect access 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 access token response or token error response.
Throws:
ParseException - If the JSON object couldn't be parsed to an OpenID Connect token response.

parse

public static OIDCTokenResponse parse(HTTPResponse httpResponse)
                               throws ParseException
Parses an OpenID Connect access token response or token error response from the specified HTTP response.

Parameters:
httpResponse - The HTTP response. Must not be null.
Returns:
The OpenID Connect access token response or token error response.
Throws:
ParseException - If the HTTP response couldn't be parsed to an OpenID Connect token response.


Copyright © 2013 NimbusDS. All Rights Reserved.