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
TokenStore
load
in interface TokenStore
id
- ID of token data to load.IOException
- An error loading the token data from storage.public void store(String id, String tokens) throws IOException
TokenStore
store
in interface TokenStore
id
- 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
TokenStore
delete
in interface TokenStore
id
- ID of token data to store.IOException
- An error storing the token data.Copyright © 2023 Google. All rights reserved.