com.google.api.client.extensions.auth.helpers.appengine
Class AccessAppResource
java.lang.Object
com.google.api.client.auth.oauth2.draft10.AccessProtectedResource
com.google.api.client.extensions.auth.helpers.appengine.AccessAppResource
- All Implemented Interfaces:
- HttpExecuteInterceptor, HttpRequestInitializer, HttpUnsuccessfulResponseHandler
Deprecated. (scheduled to be removed in 1.7) Use
AccessAppResource
@Deprecated
public class AccessAppResource
- extends AccessProtectedResource
Subclass of AccessProtectedResource that handles the different logic required to obtain a
new access token using an assertion grant when the existing one expires.
- Since:
- 1.5
- Author:
- moshenko@google.com (Jake Moshenko)
| Methods inherited from class com.google.api.client.auth.oauth2.draft10.AccessProtectedResource |
executeAccessTokenRequest, getAccessToken, getAuthorizationServerUrl, getClientId, getClientSecret, getJsonFactory, getMethod, getRefreshToken, getTransport, handleResponse, initialize, intercept, onAccessToken, refreshToken, setAccessToken |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccessAppResource
public AccessAppResource(String accessToken,
AccessProtectedResource.Method method,
HttpTransport transport,
JsonFactory jsonFactory,
String authorizationServerUrl,
String scope,
String audience)
throws IOException
- Deprecated.
- Create an instance of the access initializer.
- Parameters:
accessToken - Initial access token, or null if one is not yet available.method - Method with which to authorize the request.transport - Instance used to communicate with the auth server.jsonFactory - Instance used to deserialize communications from the auth server.authorizationServerUrl - Url at which the auth server is located.scope - Scope for which we are requesting access.audience - Audience used in the JSON web token used when obtaining access tokens.
- Throws:
IOException
executeRefreshToken
protected boolean executeRefreshToken()
throws IOException
- Deprecated.
- Overrides:
executeRefreshToken in class AccessProtectedResource
- Throws:
IOException
Copyright © 2011 Google. All Rights Reserved.