Java Code Examples for com.google.api.client.util.store.DataStoreFactory#getDataStore()
The following examples show how to use
com.google.api.client.util.store.DataStoreFactory#getDataStore() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StoredChannel.java From google-api-java-client with Apache License 2.0 | 2 votes |
/** * Returns the stored channel data store using the ID {@link #DEFAULT_DATA_STORE_ID}. * * @param dataStoreFactory data store factory * @return stored channel data store */ public static DataStore<StoredChannel> getDefaultDataStore(DataStoreFactory dataStoreFactory) throws IOException { return dataStoreFactory.getDataStore(DEFAULT_DATA_STORE_ID); }
Example 2
Source File: StoredCredential.java From google-oauth-java-client with Apache License 2.0 | 2 votes |
/** * Returns the stored credential data store using the ID {@link #DEFAULT_DATA_STORE_ID}. * * @param dataStoreFactory data store factory * @return stored credential data store */ public static DataStore<StoredCredential> getDefaultDataStore(DataStoreFactory dataStoreFactory) throws IOException { return dataStoreFactory.getDataStore(DEFAULT_DATA_STORE_ID); }