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.Flags
Nested classes/interfaces inherited from class java.util.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) void
Deprecated.(package private) boolean
load
(String userId, Credential credential) Deprecated.(package private) void
migrateTo
(com.google.api.client.util.store.DataStore<StoredCredential> typedDataStore) Deprecated.Deprecated.(package private) void
store
(String userId, Credential credential) Deprecated.Store information from the credential.Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.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 time
need to be stored
-
load
Deprecated.- Parameters:
userId
- user ID whose credential needs to be loadedcredential
- credential whoseaccess token
,refresh token
, andexpiration time
need to be set if the credential already exists in storage
-
delete
Deprecated. -
set
Deprecated.- Overrides:
set
in classcom.google.api.client.json.GenericJson
-
clone
Deprecated.- Overrides:
clone
in classcom.google.api.client.json.GenericJson
-
migrateTo
void migrateTo(com.google.api.client.util.store.DataStore<StoredCredential> typedDataStore) throws IOException Deprecated.- Throws:
IOException
-
FileDataStoreFactory
instead.