AppEngineDataStoreFactory with
StoredCredential instead,
optionally using migrateTo(AppEngineDataStoreFactory) or
migrateTo(DataStore) to migrating an existing
AppEngineCredentialStore.@Deprecated @Beta public class AppEngineCredentialStore extends Object implements CredentialStore
Beta | Constructor and Description |
|---|
AppEngineCredentialStore()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String userId,
Credential credential)
Deprecated.
|
boolean |
load(String userId,
Credential credential)
Deprecated.
|
void |
migrateTo(com.google.api.client.extensions.appengine.datastore.AppEngineDataStoreFactory dataStoreFactory)
Deprecated.
Migrates to the new
AppEngineDataStoreFactory format. |
void |
migrateTo(com.google.api.client.util.store.DataStore<StoredCredential> credentialDataStore)
Deprecated.
Migrates to the new format using
DataStore of StoredCredential. |
void |
store(String userId,
Credential credential)
Deprecated.
|
public void store(String userId, Credential credential)
store in interface CredentialStorepublic void delete(String userId, Credential credential)
delete in interface CredentialStorepublic boolean load(String userId, Credential credential)
load in interface CredentialStorepublic final void migrateTo(com.google.api.client.extensions.appengine.datastore.AppEngineDataStoreFactory dataStoreFactory)
throws IOException
AppEngineDataStoreFactory format.
Sample usage:
public static AppEngineDataStore migrate(AppEngineCredentialStore credentialStore)
throws IOException {
AppEngineDataStore dataStore = new AppEngineDataStore();
credentialStore.migrateTo(dataStore);
return dataStore;
}
dataStoreFactory - App Engine data store factoryIOExceptionpublic final void migrateTo(com.google.api.client.util.store.DataStore<StoredCredential> credentialDataStore) throws IOException
DataStore of StoredCredential.credentialDataStore - credential data storeIOExceptionCopyright © 2011-2016 Google. All Rights Reserved.