Class RTResponse
- java.lang.Object
-
- org.oa4mp.delegation.client.request.BasicResponse
-
- org.oa4mp.delegation.client.request.ATResponse
-
- org.oa4mp.delegation.client.request.RTResponse
-
- All Implemented Interfaces:
Response
- Direct Known Subclasses:
ATResponse2
public class RTResponse extends ATResponse
Created by Jeff Gaynor
on 2/24/14 at 11:19 AM
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACCESS_TOKEN
static String
ID_TOKEN
static String
PARAMETERS
static String
REFRESH_TOKEN
static String
TYPE
static String
VERSION
-
Constructor Summary
Constructors Constructor Description RTResponse(AccessTokenImpl accessToken)
RTResponse(AccessTokenImpl accessToken, RefreshTokenImpl refreshToken, IDTokenImpl idToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fromJSON(net.sf.json.JSONObject json)
IDTokenImpl
getIdToken()
RefreshTokenImpl
getRefreshToken()
boolean
hasIDToken()
boolean
hasRefreshToken()
void
setIdToken(IDTokenImpl idToken)
void
setRefreshToken(RefreshTokenImpl refreshToken)
net.sf.json.JSONObject
toJSON()
-
Methods inherited from class org.oa4mp.delegation.client.request.ATResponse
getAccessToken, setAccessToken
-
Methods inherited from class org.oa4mp.delegation.client.request.BasicResponse
getParameters, getRawResponse, setParameters, setRawResponse
-
-
-
-
Field Detail
-
REFRESH_TOKEN
public static final String REFRESH_TOKEN
- See Also:
- Constant Field Values
-
ACCESS_TOKEN
public static final String ACCESS_TOKEN
- See Also:
- Constant Field Values
-
VERSION
public static final String VERSION
- See Also:
- Constant Field Values
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
PARAMETERS
public static final String PARAMETERS
- See Also:
- Constant Field Values
-
ID_TOKEN
public static final String ID_TOKEN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RTResponse
public RTResponse(AccessTokenImpl accessToken)
-
RTResponse
public RTResponse(AccessTokenImpl accessToken, RefreshTokenImpl refreshToken, IDTokenImpl idToken)
-
-
Method Detail
-
getRefreshToken
public RefreshTokenImpl getRefreshToken()
-
setRefreshToken
public void setRefreshToken(RefreshTokenImpl refreshToken)
-
hasRefreshToken
public boolean hasRefreshToken()
-
getIdToken
public IDTokenImpl getIdToken()
-
setIdToken
public void setIdToken(IDTokenImpl idToken)
-
hasIDToken
public boolean hasIDToken()
-
toJSON
public net.sf.json.JSONObject toJSON()
-
fromJSON
public void fromJSON(net.sf.json.JSONObject json)
-
-