DeviceAuthorizationErrorResponse
, DeviceAuthorizationSuccessResponse
public abstract class DeviceAuthorizationResponse extends Object implements Response
Related specifications:
Constructor | Description |
---|---|
DeviceAuthorizationResponse() |
Modifier and Type | Method | Description |
---|---|---|
static DeviceAuthorizationResponse |
parse(HTTPResponse httpResponse) |
Parses a device authorization response from the specified HTTP
response.
|
static DeviceAuthorizationResponse |
parse(net.minidev.json.JSONObject jsonObject) |
Parses a device authorization response from the specified JSON
object.
|
DeviceAuthorizationErrorResponse |
toErrorResponse() |
Casts this response to a device authorization error response.
|
DeviceAuthorizationSuccessResponse |
toSuccessResponse() |
Casts this response to an authorization success response.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
indicatesSuccess, toHTTPResponse
public DeviceAuthorizationResponse()
public DeviceAuthorizationSuccessResponse toSuccessResponse()
public DeviceAuthorizationErrorResponse toErrorResponse()
public static DeviceAuthorizationResponse parse(net.minidev.json.JSONObject jsonObject) throws ParseException
jsonObject
- The JSON object to parse. Must not be
null
.ParseException
- If the JSON object couldn't be parsed to a
device authorization response.public static DeviceAuthorizationResponse parse(HTTPResponse httpResponse) throws ParseException
httpResponse
- The HTTP response. Must not be null
.ParseException
- If the HTTP response couldn't be parsed to a
device authorization response.Copyright © 2019 Connect2id Ltd.. All rights reserved.