public class TokenManager extends Object
| Constructor and Description |
|---|
TokenManager(String clientId,
String tokenServerUrl) |
| Modifier and Type | Method and Description |
|---|---|
AccessTokenResponse |
getAccessToken() |
static AccessTokenResponse |
getAccessTokenFromResponse(javax.ws.rs.core.Response response) |
void |
invalidate(String token)
Invalidates the current token, but only when it is equal to the token passed as an argument.
|
void |
setRefreshToken(String refreshToken) |
public void setRefreshToken(String refreshToken)
public AccessTokenResponse getAccessToken()
public void invalidate(String token)
token - the token to invalidate (cannot be null).public static AccessTokenResponse getAccessTokenFromResponse(javax.ws.rs.core.Response response)
Copyright © 2018. All rights reserved.