Class FileDataStoreFactory

java.lang.Object
com.google.api.client.util.store.AbstractDataStoreFactory
com.google.api.client.util.store.FileDataStoreFactory
All Implemented Interfaces:
DataStoreFactory

public class FileDataStoreFactory extends AbstractDataStoreFactory
Thread-safe file implementation of a credential store.

For security purposes, the file's permissions are set such that the file is only accessible by the file's owner.

Note: this class is not compatible with Android lower than API level 26 (Oreo). For an implementation compatible with Android invalid input: '<' 26, please use com.google.api.client.extensions.android.util.store.FileDataStoreFactory which is provided by com.google.http-client:google-http-client-android.

Since:
1.16
Author:
Yaniv Inbar
  • Constructor Details

    • FileDataStoreFactory

      public FileDataStoreFactory(File dataDirectory) throws IOException
      Parameters:
      dataDirectory - data directory
      Throws:
      IOException
  • Method Details