public class MemoryTokensStorage extends Object implements TokenStore
| Constructor and Description |
|---|
MemoryTokensStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String id)
Remove the token data from storage for the given ID.
|
String |
load(String id)
Load the token data from storage for the given ID.
|
void |
store(String id,
String tokens)
Put the token data into storage for the given ID.
|
public String load(String id) throws IOException
TokenStoreload in interface TokenStoreid - ID of token data to load.IOException - An error loading the token data from storage.public void store(String id, String tokens) throws IOException
TokenStorestore in interface TokenStoreid - ID of token data to store.tokens - The token data to store.IOException - An error storing the token data.public void delete(String id) throws IOException
TokenStoredelete in interface TokenStoreid - ID of token data to store.IOException - An error storing the token data.Copyright © 2019 Google. All rights reserved.