com.google.api.client.extensions.auth.helpers
Interface TwoLeggedFlow

All Known Implementing Classes:
AppAssertionFlow, AppAssertionFlow

public interface TwoLeggedFlow

A two legged flow is able to create credentials without intervention from the user. It will manage the persistence of credentials as well as be able to mint them when they do not exist.

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

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.
 

Method Detail

loadOrCreateCredential

Credential loadOrCreateCredential(javax.jdo.PersistenceManager pm)
                                  throws IOException
Load the instance of Credential associated with this flow instance or create a new one if one can not be loaded.

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.