public class TokenCache extends Object implements ITokenCache
| Modifier and Type | Field and Description |
|---|---|
protected static int |
MIN_ACCESS_TOKEN_EXPIRE_IN_SEC |
| Constructor and Description |
|---|
TokenCache() |
TokenCache(ITokenCacheAccessAspect tokenCacheAccessAspect)
Constructor for token cache
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(String data)
Deserialize token cache from json
|
protected Set<IAccount> |
getAccounts(String clientId,
Set<String> environmentAliases) |
protected void |
removeAccount(String clientId,
IAccount account,
Set<String> environmentAliases)
Remove all cache entities related to account, including account cache entity
|
protected void |
saveTokens(com.microsoft.aad.msal4j.TokenRequest tokenRequest,
com.microsoft.aad.msal4j.AuthenticationResult authenticationResult,
String environment) |
String |
serialize()
Serialize token cache to json
|
protected static final int MIN_ACCESS_TOKEN_EXPIRE_IN_SEC
public TokenCache(ITokenCacheAccessAspect tokenCacheAccessAspect)
tokenCacheAccessAspect - ITokenCacheAccessAspectpublic TokenCache()
public void deserialize(String data)
ITokenCachedeserialize in interface ITokenCachedata - serialized cache in json formatpublic String serialize()
ITokenCacheserialize in interface ITokenCacheprotected void saveTokens(com.microsoft.aad.msal4j.TokenRequest tokenRequest,
com.microsoft.aad.msal4j.AuthenticationResult authenticationResult,
String environment)
Copyright © 2013–2019. All rights reserved.