Package com.google.auth.oauth2
Interface TokenStore
- All Known Implementing Classes:
MemoryTokensStorage
public interface TokenStore
Interface for long term storage of tokens
-
Method Summary
-
Method Details
-
load
Load the token data from storage for the given ID.- Parameters:
id
- ID of token data to load.- Returns:
- The loaded token data.
- Throws:
IOException
- An error loading the token data from storage.
-
store
Put the token data into storage for the given ID.- Parameters:
id
- ID of token data to store.tokens
- The token data to store.- Throws:
IOException
- An error storing the token data.
-
delete
Remove the token data from storage for the given ID.- Parameters:
id
- ID of token data to store.- Throws:
IOException
- An error storing the token data.
-