public class OneloginOAuthJSONAccessTokenResponse
extends org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse
| Constructor and Description |
|---|
OneloginOAuthJSONAccessTokenResponse() |
| Modifier and Type | Method and Description |
|---|---|
static void |
enableThrowingOAuthProblemException(boolean value) |
String |
getAccessToken() |
String |
getAccountID() |
org.joda.time.DateTime |
getCreateAt() |
String |
getError() |
String |
getErrorDescription() |
Long |
getExpiresIn() |
org.apache.oltu.oauth2.common.token.OAuthToken |
getOAuthToken() |
String |
getRefreshToken() |
String |
getScope() |
String |
getTokenType() |
protected void |
init(String body,
String contentType,
int responseCode,
Map<String,List<String>> headers) |
protected void |
setBody(String body) |
protected void |
setContentType(String contentType) |
protected void |
setResponseCode(int code) |
protected Map<String,Object> |
transformOLData(Map<String,Object> map) |
getBody, initpublic OneloginOAuthJSONAccessTokenResponse()
protected void init(String body, String contentType, int responseCode, Map<String,List<String>> headers) throws org.apache.oltu.oauth2.common.exception.OAuthProblemException
init in class org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponseorg.apache.oltu.oauth2.common.exception.OAuthProblemExceptionpublic String getAccessToken()
getAccessToken in class org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponsepublic String getTokenType()
getTokenType in class org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponsepublic Long getExpiresIn()
getExpiresIn in class org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponsepublic String getScope()
getScope in class org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponsepublic org.apache.oltu.oauth2.common.token.OAuthToken getOAuthToken()
getOAuthToken in class org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponsepublic String getRefreshToken()
getRefreshToken in class org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponsepublic String getAccountID()
public org.joda.time.DateTime getCreateAt()
public String getError()
public String getErrorDescription()
protected void setBody(String body) throws org.apache.oltu.oauth2.common.exception.OAuthProblemException
setBody in class org.apache.oltu.oauth2.client.response.OAuthClientResponseorg.apache.oltu.oauth2.common.exception.OAuthProblemExceptionprotected void setContentType(String contentType)
setContentType in class org.apache.oltu.oauth2.client.response.OAuthClientResponseprotected void setResponseCode(int code)
setResponseCode in class org.apache.oltu.oauth2.client.response.OAuthClientResponsepublic static void enableThrowingOAuthProblemException(boolean value)
Copyright © 2018. All rights reserved.