org.apache.oltu.oauth2.client.response
Class OAuthJSONAccessTokenResponse

java.lang.Object
  extended by org.apache.oltu.oauth2.client.response.OAuthClientResponse
      extended by org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse
          extended by org.apache.oltu.oauth2.client.response.OAuthJSONAccessTokenResponse

public class OAuthJSONAccessTokenResponse
extends OAuthAccessTokenResponse


Field Summary
 
Fields inherited from class org.apache.oltu.oauth2.client.response.OAuthClientResponse
body, contentType, parameters, responseCode, validator
 
Constructor Summary
OAuthJSONAccessTokenResponse()
           
 
Method Summary
 String getAccessToken()
           
 Long getExpiresIn()
           
 OAuthToken getOAuthToken()
           
 String getRefreshToken()
           
 String getScope()
           
protected  void setBody(String body)
           
protected  void setContentType(String contentType)
           
protected  void setResponseCode(int code)
           
 
Methods inherited from class org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse
getBody, init
 
Methods inherited from class org.apache.oltu.oauth2.client.response.OAuthClientResponse
getParam, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthJSONAccessTokenResponse

public OAuthJSONAccessTokenResponse()
Method Detail

getAccessToken

public String getAccessToken()
Specified by:
getAccessToken in class OAuthAccessTokenResponse

getExpiresIn

public Long getExpiresIn()
Specified by:
getExpiresIn in class OAuthAccessTokenResponse

getScope

public String getScope()
Specified by:
getScope in class OAuthAccessTokenResponse

getOAuthToken

public OAuthToken getOAuthToken()
Specified by:
getOAuthToken in class OAuthAccessTokenResponse

getRefreshToken

public String getRefreshToken()
Specified by:
getRefreshToken in class OAuthAccessTokenResponse

setBody

protected void setBody(String body)
                throws OAuthProblemException
Specified by:
setBody in class OAuthClientResponse
Throws:
OAuthProblemException

setContentType

protected void setContentType(String contentType)
Specified by:
setContentType in class OAuthClientResponse

setResponseCode

protected void setResponseCode(int code)
Specified by:
setResponseCode in class OAuthClientResponse


Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.