public class BTCPayServerTokenManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.time.Clock |
clock |
| Constructor and Description |
|---|
BTCPayServerTokenManager()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Method to clear the current token cache.
|
Token |
get(BTCPayServerFacade facade)
Fetches the related token for the given facade or null if doesn't exist of have expired.
|
void |
put(Token token)
Adds the given token in related to the facade to the cache.
|
public Token get(BTCPayServerFacade facade)
facade - the facade to fetch token for.public void put(Token token)
token - the token to set.public void clear()