public class TokenDataHolder extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addTokenDataToMap(String key,
TokenData value)
Adds a given key, value pair to the map.
|
static TokenDataHolder |
getInstance()
This method can be used to get the singleton instance of this class.
|
Map<String,TokenData> |
getTokenMap()
Fetches the token map.
|
void |
removeTokenDataFromMap(String key)
Removes a given key, value pair from the map.
|
public static TokenDataHolder getInstance()
public void addTokenDataToMap(String key, TokenData value)
key - name of the user which the access token belongs to.value - data of the token.public void removeTokenDataFromMap(String key)
key - name of the user which the access token belongs to.Copyright © 2020 WSO2. All rights reserved.