Class FilePersistedCredential
- 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.FilePersistedCredential
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
@Deprecated @Beta public class FilePersistedCredential 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.lang.StringaccessTokenDeprecated.Access token ornullfor none.private java.lang.LongexpirationTimeMillisDeprecated.Expiration time in millisecondsnullfor none.private java.lang.StringrefreshTokenDeprecated.Refresh tokennullfor none.
-
Constructor Summary
Constructors Constructor Description FilePersistedCredential()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FilePersistedCredentialclone()Deprecated.(package private) voidload(Credential credential)Deprecated.FilePersistedCredentialset(java.lang.String fieldName, java.lang.Object value)Deprecated.(package private) voidstore(Credential credential)Deprecated.Store information from the credential.(package private) StoredCredentialtoStoredCredential()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
-
-
-
-
Field Detail
-
accessToken
private java.lang.String accessToken
Deprecated.Access token ornullfor none.
-
refreshToken
private java.lang.String refreshToken
Deprecated.Refresh tokennullfor none.
-
expirationTimeMillis
private java.lang.Long expirationTimeMillis
Deprecated.Expiration time in millisecondsnullfor none.
-
-
Method Detail
-
store
void store(Credential credential)
Deprecated.Store information from the credential.- Parameters:
credential- credential whoseaccess token,refresh token, andexpiration timeneed to be stored
-
load
void load(Credential credential)
Deprecated.- Parameters:
credential- credential whoseaccess token,refresh token, andexpiration timeneed to be set if the credential already exists in storage
-
set
public FilePersistedCredential set(java.lang.String fieldName, java.lang.Object value)
Deprecated.- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public FilePersistedCredential clone()
Deprecated.- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
toStoredCredential
StoredCredential toStoredCredential()
Deprecated.
-
-