Package com.nimbusds.openid.connect.sdk
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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TokenResponse
parse(HTTPResponse httpResponse)
Parses an OpenID Connect token response or token error response from the specified HTTP response.static TokenResponse
parse(net.minidev.json.JSONObject jsonObject)
Parses an OpenID Connect token response or token error response from the specified JSON object.
-
-
-
Method Detail
-
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 benull
.- 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 benull
.- Returns:
- The OpenID Connect token response or token error response.
- Throws:
ParseException
- If the HTTP response couldn't be parsed to a token response.
-
-