Class FilePersistedCredential
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.FilePersistedCredential
@Deprecated
@Beta
public class FilePersistedCredential
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated.(package private) void
load
(Credential credential) Deprecated.Deprecated.(package private) void
store
(Credential credential) Deprecated.Store information from the credential.(package private) StoredCredential
Deprecated.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
-
accessToken
Deprecated.Access token ornull
for none. -
refreshToken
Deprecated.Refresh tokennull
for none. -
expirationTimeMillis
Deprecated.Expiration time in millisecondsnull
for none.
-
-
Constructor Details
-
FilePersistedCredential
public FilePersistedCredential()Deprecated.
-
-
Method Details
-
store
Deprecated.Store information from the credential.- Parameters:
credential
- credential whoseaccess token
,refresh token
, andexpiration time
need to be stored
-
load
Deprecated.- Parameters:
credential
- credential whoseaccess token
,refresh token
, andexpiration time
need to be set if the credential already exists in storage
-
set
Deprecated.- Overrides:
set
in classcom.google.api.client.json.GenericJson
-
clone
Deprecated.- Overrides:
clone
in classcom.google.api.client.json.GenericJson
-
toStoredCredential
StoredCredential toStoredCredential()Deprecated.
-
FileDataStoreFactory
instead.