Class FilePersistedCredentials
- java.lang.Object
-
- java.util.AbstractMap<java.lang.String,java.lang.Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.client.extensions.java6.auth.oauth2.FilePersistedCredentials
-
- All Implemented Interfaces:
java.lang.Cloneable
,java.util.Map<java.lang.String,java.lang.Object>
@Deprecated @Beta public class FilePersistedCredentials extends com.google.api.client.json.GenericJson
Deprecated.(to be removed in the future) UseFileDataStoreFactory
instead.- 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
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,FilePersistedCredential>
credentials
Deprecated.User ID to be used as the primary key.
-
Constructor Summary
Constructors Constructor Description FilePersistedCredentials()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FilePersistedCredentials
clone()
Deprecated.(package private) void
delete(java.lang.String userId)
Deprecated.(package private) boolean
load(java.lang.String userId, Credential credential)
Deprecated.(package private) void
migrateTo(com.google.api.client.util.store.DataStore<StoredCredential> typedDataStore)
Deprecated.FilePersistedCredentials
set(java.lang.String fieldName, java.lang.Object value)
Deprecated.(package private) void
store(java.lang.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
-
-
-
-
Field Detail
-
credentials
private java.util.Map<java.lang.String,FilePersistedCredential> credentials
Deprecated.User ID to be used as the primary key.
-
-
Method Detail
-
store
void store(java.lang.String userId, Credential credential)
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
boolean load(java.lang.String userId, Credential credential)
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
void delete(java.lang.String userId)
Deprecated.
-
set
public FilePersistedCredentials set(java.lang.String fieldName, java.lang.Object value)
Deprecated.- Overrides:
set
in classcom.google.api.client.json.GenericJson
-
clone
public FilePersistedCredentials clone()
Deprecated.- Overrides:
clone
in classcom.google.api.client.json.GenericJson
-
migrateTo
void migrateTo(com.google.api.client.util.store.DataStore<StoredCredential> typedDataStore) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
-