Class MemoryTokensStorage
java.lang.Object
com.google.auth.oauth2.MemoryTokensStorage
- All Implemented Interfaces:
TokenStore
Represents an in-memory storage of tokens.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
tokensStorage
-
-
Constructor Details
-
MemoryTokensStorage
public MemoryTokensStorage()
-
-
Method Details
-
load
Description copied from interface:TokenStoreLoad the token data from storage for the given ID.- Specified by:
loadin interfaceTokenStore- Parameters:
id- ID of token data to load.- Returns:
- The loaded token data.
- Throws:
IOException- An error loading the token data from storage.
-
store
Description copied from interface:TokenStorePut the token data into storage for the given ID.- Specified by:
storein interfaceTokenStore- Parameters:
id- ID of token data to store.tokens- The token data to store.- Throws:
IOException- An error storing the token data.
-
delete
Description copied from interface:TokenStoreRemove the token data from storage for the given ID.- Specified by:
deletein interfaceTokenStore- Parameters:
id- ID of token data to store.- Throws:
IOException- An error storing the token data.
-