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

java.lang.Object
  extended by org.apache.oltu.oauth2.client.response.OAuthClientResponse
      extended by org.apache.oltu.oauth2.client.response.OAuthAccessTokenResponse
Direct Known Subclasses:
GitHubTokenResponse, OAuthJSONAccessTokenResponse

public abstract class OAuthAccessTokenResponse
extends OAuthClientResponse


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

Constructor Detail

OAuthAccessTokenResponse

public OAuthAccessTokenResponse()
Method Detail

getAccessToken

public abstract String getAccessToken()

getExpiresIn

public abstract Long getExpiresIn()

getRefreshToken

public abstract String getRefreshToken()

getScope

public abstract String getScope()

getOAuthToken

public abstract OAuthToken getOAuthToken()

getBody

public String getBody()

init

protected void init(String body,
                    String contentType,
                    int responseCode)
             throws OAuthProblemException
Overrides:
init in class OAuthClientResponse
Throws:
OAuthProblemException


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