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.GenericJsonDeprecated.(to be removed in the future) UseFileDataStoreFactoryinstead.- 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>credentialsDeprecated.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 FilePersistedCredentialsclone()Deprecated.(package private) voiddelete(java.lang.String userId)Deprecated.(package private) booleanload(java.lang.String userId, Credential credential)Deprecated.(package private) voidmigrateTo(com.google.api.client.util.store.DataStore<StoredCredential> typedDataStore)Deprecated.FilePersistedCredentialsset(java.lang.String fieldName, java.lang.Object value)Deprecated.(package private) voidstore(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 timeneed 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 timeneed 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:
setin classcom.google.api.client.json.GenericJson
-
clone
public FilePersistedCredentials clone()
Deprecated.- Overrides:
clonein 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
-
-