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.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.lang.String
accessToken
Deprecated.Access token ornull
for none.private java.lang.Long
expirationTimeMillis
Deprecated.Expiration time in millisecondsnull
for none.private java.lang.String
refreshToken
Deprecated.Refresh tokennull
for none.
-
Constructor Summary
Constructors Constructor Description FilePersistedCredential()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FilePersistedCredential
clone()
Deprecated.(package private) void
load(Credential credential)
Deprecated.FilePersistedCredential
set(java.lang.String fieldName, java.lang.Object value)
Deprecated.(package private) void
store(Credential credential)
Deprecated.Store information from the credential.(package private) StoredCredential
toStoredCredential()
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 ornull
for none.
-
refreshToken
private java.lang.String refreshToken
Deprecated.Refresh tokennull
for none.
-
expirationTimeMillis
private java.lang.Long expirationTimeMillis
Deprecated.Expiration time in millisecondsnull
for none.
-
-
Method Detail
-
store
void store(Credential credential)
Deprecated.Store information from the credential.- Parameters:
credential
- credential whoseaccess token
,refresh token
, andexpiration time
need to be stored
-
load
void load(Credential credential)
Deprecated.- Parameters:
credential
- credential whoseaccess token
,refresh token
, andexpiration time
need to be set if the credential already exists in storage
-
set
public FilePersistedCredential set(java.lang.String fieldName, java.lang.Object value)
Deprecated.- Overrides:
set
in classcom.google.api.client.json.GenericJson
-
clone
public FilePersistedCredential clone()
Deprecated.- Overrides:
clone
in classcom.google.api.client.json.GenericJson
-
toStoredCredential
StoredCredential toStoredCredential()
Deprecated.
-
-