com.google.api.client.extensions.appengine.auth.helpers
Class AppAssertionFlow

java.lang.Object
  extended by com.google.api.client.extensions.appengine.auth.helpers.AppAssertionFlow
All Implemented Interfaces:
TwoLeggedFlow

public class AppAssertionFlow
extends Object
implements TwoLeggedFlow

Class which will allow us to create or load instances of AppAssertionCredential.

Since:
1.6
Author:
moshenko@google.com (Jake Moshenko)

Constructor Summary
AppAssertionFlow(String robotName, String authorizationServerUrl, String scope, String audience, HttpTransport transport, JsonFactory jsonFactory)
          Create an instance.
 
Method Summary
 Credential loadOrCreateCredential(javax.jdo.PersistenceManager pm)
          Load the instance of Credential associated with this flow instance or create a new one if one can not be loaded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppAssertionFlow

public AppAssertionFlow(String robotName,
                        String authorizationServerUrl,
                        String scope,
                        String audience,
                        HttpTransport transport,
                        JsonFactory jsonFactory)
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.
Method Detail

loadOrCreateCredential

public Credential loadOrCreateCredential(javax.jdo.PersistenceManager pm)
                                  throws IOException
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.