|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nimbusds.oauth2.sdk.client.ClientRegistrationResponse
com.nimbusds.oauth2.sdk.client.ClientRegistrationErrorResponse
@Immutable public class ClientRegistrationErrorResponse
Client registration error response. This class is immutable.
Standard errors:
Example HTTP response:
HTTP/1.1 400 Bad Request Content-Type: application/json Cache-Control: no-store Pragma: no-cache { "error":"invalid_redirect_uri", "error_description":"The redirect URI of http://sketchy.example.com is not allowed for this server." }
Related specifications:
Constructor Summary | |
---|---|
ClientRegistrationErrorResponse(ErrorObject error)
Creates a new client registration error response. |
Method Summary | |
---|---|
ErrorObject |
getErrorObject()
Gets the error associated with the error response. |
static Set<ErrorObject> |
getStandardErrors()
Gets the standard errors for a client registration error response. |
static ClientRegistrationErrorResponse |
parse(HTTPResponse httpResponse)
Parses a client registration error response from the specified HTTP response. |
HTTPResponse |
toHTTPResponse()
Returns the HTTP response for this client registration error response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientRegistrationErrorResponse(ErrorObject error)
error
- The error. Should match one of the
standard errors
for a client
registration error response. Must not be null
.Method Detail |
---|
public static Set<ErrorObject> getStandardErrors()
public ErrorObject getErrorObject()
ErrorResponse
getErrorObject
in interface ErrorResponse
null
if none.public HTTPResponse toHTTPResponse()
Example HTTP response:
HTTP/1.1 400 Bad Request Content-Type: application/json Cache-Control: no-store Pragma: no-cache { "error":"invalid_redirect_uri", "error_description":"The redirect URI of http://sketchy.example.com is not allowed for this server." }
toHTTPResponse
in interface Response
public static ClientRegistrationErrorResponse parse(HTTPResponse httpResponse) throws ParseException
Note: The HTTP status code is not checked for matching the error code semantics.
httpResponse
- The HTTP response to parse. Its status code must
not be 200 (OK). Must not be null
.
ParseException
- If the HTTP response couldn't be parsed to a
client registration error response.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |