public class AppEngineCredentialStore implements CredentialStore
Deprecated. (to be removed in the future) Use AppEngineDataStoreFactory with StoredCredential instead, optionally using #migrateTo(AppEngineDataStoreFactory) or #migrateTo(DataStore) to migrating an existing AppEngineCredentialStore.
Beta
Thread-safe Google App Engine implementation of a credential store that directly uses the App
Engine Data Store API.
Implements
CredentialStoreConstructors
AppEngineCredentialStore() (deprecated)
public AppEngineCredentialStore()
Methods
delete(String userId, Credential credential) (deprecated)
public void delete(String userId, Credential credential)
Deletes the credential of the given user ID.
Name | Description |
userId | String |
credential | Credential |
load(String userId, Credential credential) (deprecated)
public boolean load(String userId, Credential credential)
Loads the credential for the given user ID.
Name | Description |
userId | String |
credential | Credential |
Type | Description |
boolean |
migrateTo(AppEngineDataStoreFactory dataStoreFactory) (deprecated)
public final void migrateTo(AppEngineDataStoreFactory dataStoreFactory)
Migrates to the new AppEngineDataStoreFactory format.
Sample usage:
public static AppEngineDataStore migrate(AppEngineCredentialStore credentialStore) throws IOException { AppEngineDataStore dataStore = new AppEngineDataStore(); credentialStore.migrateTo(dataStore); return dataStore; }
Name | Description |
dataStoreFactory | com.google.api.client.extensions.appengine.datastore.AppEngineDataStoreFactory App Engine data store factory |
Type | Description |
IOException |
migrateTo(DataStore<StoredCredential> credentialDataStore) (deprecated)
public final void migrateTo(DataStore<StoredCredential> credentialDataStore)
Migrates to the new format using DataStore of StoredCredential.
Name | Description |
credentialDataStore | com.google.api.client.util.store.DataStore<StoredCredential> credential data store |
Type | Description |
IOException |
store(String userId, Credential credential) (deprecated)
public void store(String userId, Credential credential)
Stores the credential of the given user ID.
Name | Description |
userId | String |
credential | Credential |