com.google.api.client.extensions.auth.helpers.appengine
Class AppAssertionFlow
java.lang.Object
com.google.api.client.extensions.auth.helpers.appengine.AppAssertionFlow
- All Implemented Interfaces:
- TwoLeggedFlow
Deprecated. (scheduled to be removed in 1.7) Use
AppAssertionFlow
@Deprecated
public class AppAssertionFlow
- extends Object
- implements TwoLeggedFlow
Class which will allow us to create or load instances of AppAssertionCredential.
- Since:
- 1.5
- Author:
- moshenko@google.com (Jake Moshenko)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AppAssertionFlow
public AppAssertionFlow(String robotName,
String authorizationServerUrl,
String scope,
String audience,
HttpTransport transport,
JsonFactory jsonFactory)
- Deprecated.
- Create an instance.
- Parameters:
robotName - Identifier that will eventually become the primary key for the credential
object created by this flow. This is usually the application's identifier.authorizationServerUrl - Server with which we will exchange our assertion for an access
token.scope - Scope (or list of scopes) for which we require access.audience - Audience that will be used when creating the assertion.transport - HttpTransport instance that will be used for network communication.jsonFactory - JsonFactory instance whtat will be used to serialize and deserialize
auth server communications.
loadOrCreateCredential
public Credential loadOrCreateCredential(javax.jdo.PersistenceManager pm)
throws IOException
- Deprecated.
- Description copied from interface:
TwoLeggedFlow
- Load the instance of
Credential associated with this flow instance or create a new one
if one can not be loaded.
- Specified by:
loadOrCreateCredential in interface TwoLeggedFlow
- Parameters:
pm - Persistence manager used for communicating with the datastore.
- Returns:
Credential instance associated with this flow instance.
- Throws:
IOException - Thrown when a failure occurs communicating with the auth server or the data
store.
Copyright © 2011 Google. All Rights Reserved.