Class AppEngineCredentialStore (1.33.3)

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.

Inheritance

java.lang.Object > AppEngineCredentialStore

Implements

CredentialStore

Constructors

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.

Parameters
NameDescription
userIdString
credentialCredential

load(String userId, Credential credential) (deprecated)

public boolean load(String userId, Credential credential)

Loads the credential for the given user ID.

Parameters
NameDescription
userIdString
credentialCredential
Returns
TypeDescription
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; }

Parameter
NameDescription
dataStoreFactorycom.google.api.client.extensions.appengine.datastore.AppEngineDataStoreFactory

App Engine data store factory

Exceptions
TypeDescription
IOException

migrateTo(DataStore<StoredCredential> credentialDataStore) (deprecated)

public final void migrateTo(DataStore<StoredCredential> credentialDataStore)

Migrates to the new format using DataStore of StoredCredential.

Parameter
NameDescription
credentialDataStorecom.google.api.client.util.store.DataStore<StoredCredential>

credential data store

Exceptions
TypeDescription
IOException

store(String userId, Credential credential) (deprecated)

public void store(String userId, Credential credential)

Stores the credential of the given user ID.

Parameters
NameDescription
userIdString
credentialCredential