Class AppEngineCredentialStore (1.34.1)

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
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.

Parameters
Name Description
userId String
credential Credential
Returns
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; }

Parameter
Name Description
dataStoreFactory com.google.api.client.extensions.appengine.datastore.AppEngineDataStoreFactory

App Engine data store factory

Exceptions
Type Description
IOException

migrateTo(DataStore<StoredCredential> credentialDataStore) (deprecated)

public final void migrateTo(DataStore<StoredCredential> credentialDataStore)

Migrates to the new format using DataStore of StoredCredential.

Parameter
Name Description
credentialDataStore com.google.api.client.util.store.DataStore<StoredCredential>

credential data store

Exceptions
Type Description
IOException

store(String userId, Credential credential) (deprecated)

public void store(String userId, Credential credential)

Stores the credential of the given user ID.

Parameters
Name Description
userId String
credential Credential