com.google.api.client.googleapis.extensions.auth.helpers.oauth2.draft10
Class GoogleOAuth2ThreeLeggedFlow

java.lang.Object
  extended by com.google.api.client.extensions.auth.helpers.oauth2.draft10.OAuth2ThreeLeggedFlow
      extended by com.google.api.client.googleapis.extensions.auth.helpers.oauth2.draft10.GoogleOAuth2ThreeLeggedFlow
All Implemented Interfaces:
ThreeLeggedFlow, javax.jdo.spi.PersistenceCapable

public class GoogleOAuth2ThreeLeggedFlow
extends OAuth2ThreeLeggedFlow

This class performs the same function as OAuth2ThreeLeggedFlow but provides a convenience constructor that fills in the OAuth2 endpoints for talking to Google APIs. It is not safe to use one instance of this implementation from multiple threads.

Since:
1.4
Author:
moshenko@google.com (Jacob Moshenko)

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.jdo.spi.PersistenceCapable
javax.jdo.spi.PersistenceCapable.ObjectIdFieldConsumer, javax.jdo.spi.PersistenceCapable.ObjectIdFieldManager, javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier
 
Field Summary
 
Fields inherited from class com.google.api.client.extensions.auth.helpers.oauth2.draft10.OAuth2ThreeLeggedFlow
jdoFlags, jdoStateManager
 
Fields inherited from interface javax.jdo.spi.PersistenceCapable
CHECK_READ, CHECK_WRITE, LOAD_REQUIRED, MEDIATE_READ, MEDIATE_WRITE, READ_OK, READ_WRITE_OK, SERIALIZABLE
 
Constructor Summary
GoogleOAuth2ThreeLeggedFlow(String userId, String clientId, String clientSecret, String scope, String callbackUrl)
          Create the flow object with the information provided and generate the authorization url.
 
Method Summary
 
Methods inherited from class com.google.api.client.extensions.auth.helpers.oauth2.draft10.OAuth2ThreeLeggedFlow
___jdo$loadClass, __jdoGetInheritedFieldCount, complete, getAuthorizationUrl, jdoCopyField, jdoCopyFields, jdoCopyKeyFieldsFromObjectId, jdoCopyKeyFieldsFromObjectId, jdoCopyKeyFieldsToObjectId, jdoCopyKeyFieldsToObjectId, jdoGetManagedFieldCount, jdoGetObjectId, jdoGetPersistenceManager, jdoGetTransactionalObjectId, jdoGetVersion, jdoIsDeleted, jdoIsDetached, jdoIsDirty, jdoIsNew, jdoIsPersistent, jdoIsTransactional, jdoMakeDirty, jdoNewInstance, jdoNewInstance, jdoNewObjectIdInstance, jdoNewObjectIdInstance, jdoPreSerialize, jdoProvideField, jdoProvideFields, jdoReplaceField, jdoReplaceFields, jdoReplaceFlags, jdoReplaceStateManager, loadCredential, setHttpTransport, setJsonFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleOAuth2ThreeLeggedFlow

public GoogleOAuth2ThreeLeggedFlow(String userId,
                                   String clientId,
                                   String clientSecret,
                                   String scope,
                                   String callbackUrl)
Create the flow object with the information provided and generate the authorization url.

Parameters:
userId - Key that will be used to associate this flow object with an end user.
clientId - Used to identify the client server with the token server.
clientSecret - Secret shared between the client server and the token server.
scope - OAuth2 scope or space delimited list of scopes for which we require access.
callbackUrl - Where the authorization should redirect the user to complete the flow.


Copyright © 2010-2011 Google. All Rights Reserved.