public class TokenManager extends Object
Constructor and Description |
---|
TokenManager(Config config,
ResteasyClient client) |
Modifier and Type | Method and Description |
---|---|
AccessTokenResponse |
getAccessToken() |
String |
getAccessTokenString() |
AccessTokenResponse |
grantToken() |
void |
invalidate(String token)
Invalidates the current token, but only when it is equal to the token passed as an argument.
|
AccessTokenResponse |
refreshToken() |
void |
setMinTokenValidity(long minTokenValidity) |
public TokenManager(Config config, ResteasyClient client)
public String getAccessTokenString()
public AccessTokenResponse getAccessToken()
public AccessTokenResponse grantToken()
public AccessTokenResponse refreshToken()
public void setMinTokenValidity(long minTokenValidity)
public void invalidate(String token)
token
- the token to invalidate (cannot be null).Copyright © 2019 JBoss by Red Hat. All rights reserved.