Package com.nimbusds.oauth2.sdk.client
Class ClientRegistrationResponse
java.lang.Object
com.nimbusds.oauth2.sdk.client.ClientRegistrationResponse
- Direct Known Subclasses:
ClientInformationResponse,ClientRegistrationErrorResponse
The base abstract for client registration responses.
Related specifications:
- OAuth 2.0 Dynamic Client Registration Protocol (RFC 7591), section 3.2.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientRegistrationResponseparse(HTTPResponse httpResponse) Parses a client registration response from the specified HTTP response.Casts this response to a client registration error response.Casts this response to a client information response.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.nimbusds.oauth2.sdk.Response
indicatesSuccess, toHTTPResponse
-
Constructor Details
-
ClientRegistrationResponse
public ClientRegistrationResponse()
-
-
Method Details
-
toSuccessResponse
Casts this response to a client information response.- Returns:
- The client information response.
-
toErrorResponse
Casts this response to a client registration error response.- Returns:
- The client registration error response.
-
parse
Parses a client registration response from the specified HTTP response.- Parameters:
httpResponse- The HTTP response. Must not benull.- Returns:
- The client registration response.
- Throws:
ParseException- If the HTTP response couldn't be parsed to a client registration response.
-