Class 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) Use FileDataStoreFactory instead.
    Beta
    Persisted credential implementation to be used exclusively with FileCredentialStore.
    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

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • 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.
    • 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
      • 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 Detail

      • credentials

        private java.util.Map<java.lang.String,​FilePersistedCredential> credentials
        Deprecated.
        User ID to be used as the primary key.
    • Constructor Detail

      • FilePersistedCredentials

        public FilePersistedCredentials()
        Deprecated.
    • 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 stored
        credential - credential whose access token, refresh token, and expiration time need to be stored
      • load

        boolean load​(java.lang.String userId,
                     Credential credential)
        Deprecated.
        Parameters:
        userId - user ID whose credential needs to be loaded
        credential - credential whose access token, refresh token, and expiration 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 class com.google.api.client.json.GenericJson
      • clone

        public FilePersistedCredentials clone()
        Deprecated.
        Overrides:
        clone in class com.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