Package com.google.api.client.googleapis.extensions.appengine.auth.oauth2 (2.5.0)

Google App Engine utilities for OAuth 2.0 for Google APIs.

Classes

AppIdentityCredential

OAuth 2.0 credential in which a client Google App Engine application needs to access data that it owns, based on <a href="https://developers.google.com/appengine/docs/java/appidentity/

Java_Asserting_identity_to_Google_APIs">Asserting Identity to Google APIs

Intercepts the request by using the access token obtained from AppIdentityService#getAccessToken(Iterable).

Sample usage:


 public static HttpRequestFactory createRequestFactory(HttpTransport transport,
     JsonFactory jsonFactory, TokenResponse tokenResponse) {
   return transport.createRequestFactory(
   new AppIdentityCredential("https://www.googleapis.com/auth/urlshortener"));
 }
 

Implementation is immutable and thread-safe.

AppIdentityCredential.AppEngineCredentialWrapper

Beta
Credential wrapper for application identity that inherits from GoogleCredential.

AppIdentityCredential.Builder

Builder for AppIdentityCredential.

Implementation is not thread-safe.