Package com.nimbusds.oauth2.sdk.client
Class ClientRegistrationResponse
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.client.ClientRegistrationResponse
-
- Direct Known Subclasses:
ClientInformationResponse
,ClientRegistrationErrorResponse
public abstract class ClientRegistrationResponse extends Object implements Response
The base abstract for client registration responses.Related specifications:
- OAuth 2.0 Dynamic Client Registration Protocol (RFC 7591), section 3.2.
-
-
Constructor Summary
Constructors Constructor Description ClientRegistrationResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClientRegistrationResponse
parse(HTTPResponse httpResponse)
Parses a client registration response from the specified HTTP response.ClientRegistrationErrorResponse
toErrorResponse()
Casts this response to a client registration error response.ClientInformationResponse
toSuccessResponse()
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, wait
-
Methods inherited from interface com.nimbusds.oauth2.sdk.Response
indicatesSuccess, toHTTPResponse
-
-
-
-
Constructor Detail
-
ClientRegistrationResponse
public ClientRegistrationResponse()
-
-
Method Detail
-
toSuccessResponse
public ClientInformationResponse toSuccessResponse()
Casts this response to a client information response.- Returns:
- The client information response.
-
toErrorResponse
public ClientRegistrationErrorResponse toErrorResponse()
Casts this response to a client registration error response.- Returns:
- The client registration error response.
-
parse
public static ClientRegistrationResponse parse(HTTPResponse httpResponse) throws ParseException
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.
-
-