|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.nimbusds.oauth2.sdk.TokenResponse com.nimbusds.oauth2.sdk.TokenErrorResponse com.nimbusds.openid.connect.sdk.OIDCTokenErrorResponse
@Immutable public class OIDCTokenErrorResponse
OpenID Connect token error response. This class is immutable.
Standard token errors:
OAuth2Error.INVALID_REQUEST
OAuth2Error.INVALID_CLIENT
OAuth2Error.INVALID_GRANT
OAuth2Error.UNAUTHORIZED_CLIENT
OAuth2Error.UNSUPPORTED_GRANT_TYPE
OAuth2Error.INVALID_SCOPE
Example HTTP response:
HTTP/1.1 400 Bad Request Content-Type: application/json Cache-Control: no-store Pragma: no-cache { "error": "invalid_request" }
Related specifications:
Constructor Summary | |
---|---|
OIDCTokenErrorResponse(ErrorObject error)
Creates a new OpenID Connect token error response. |
Method Summary | |
---|---|
static OIDCTokenErrorResponse |
parse(HTTPResponse httpResponse)
Parses an OpenID Connect token error response from the specified HTTP response. |
static OIDCTokenErrorResponse |
parse(net.minidev.json.JSONObject jsonObject)
Parses an OpenID Connect token error response from the specified JSON object. |
Methods inherited from class com.nimbusds.oauth2.sdk.TokenErrorResponse |
---|
getErrorObject, getStandardErrors, toHTTPResponse, toJSONObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.nimbusds.oauth2.sdk.Response |
---|
toHTTPResponse |
Constructor Detail |
---|
public OIDCTokenErrorResponse(ErrorObject error)
error
- The error. Should match one of the
standard errors
for a token
error response. Must not be null
.Method Detail |
---|
public static OIDCTokenErrorResponse parse(net.minidev.json.JSONObject jsonObject) throws ParseException
jsonObject
- The JSON object to parse. Its status code must not
be 200 (OK). Must not be null
.
ParseException
- If the JSON object couldn't be parsed to an
OpenID Connect token error response.public static OIDCTokenErrorResponse parse(HTTPResponse httpResponse) throws ParseException
httpResponse
- The HTTP response to parse. Its status code must
not be 200 (OK). Must not be null
.
ParseException
- If the JSON object couldn't be parsed to an
OpenID Connect token error response.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |