Class FilePersistedCredentials
java.lang.Object
java.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.json.GenericJson
com.google.api.client.extensions.java6.auth.oauth2.FilePersistedCredentials
@Deprecated
@Beta
public class FilePersistedCredentials
extends com.google.api.client.json.GenericJson
Deprecated.
- Since:
- 1.11
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.FlagsNested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<String, FilePersistedCredential> Deprecated.User ID to be used as the primary key. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Deprecated.(package private) voidDeprecated.(package private) booleanload(String userId, Credential credential) Deprecated.(package private) voidmigrateTo(com.google.api.client.util.store.DataStore<StoredCredential> typedDataStore) Deprecated.Deprecated.(package private) voidstore(String userId, Credential credential) Deprecated.Store information from the credential.Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toStringMethods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysMethods inherited from class AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
credentials
Deprecated.User ID to be used as the primary key.
-
-
Constructor Details
-
FilePersistedCredentials
public FilePersistedCredentials()Deprecated.
-
-
Method Details
-
store
Deprecated.Store information from the credential.- Parameters:
userId- user ID whose credential needs to be storedcredential- credential whoseaccess token,refresh token, andexpiration timeneed to be stored
-
load
Deprecated.- Parameters:
userId- user ID whose credential needs to be loadedcredential- credential whoseaccess token,refresh token, andexpiration timeneed to be set if the credential already exists in storage
-
delete
Deprecated. -
set
Deprecated.- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
Deprecated.- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
migrateTo
void migrateTo(com.google.api.client.util.store.DataStore<StoredCredential> typedDataStore) throws IOException Deprecated.- Throws:
IOException
-
FileDataStoreFactoryinstead.