Package org.keycloak.admin.client.token
Class TokenManager
java.lang.Object
org.keycloak.admin.client.token.TokenManager
- Author:
- rodrigo.sasaki@icarros.com.br
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
invalidate
(String token) Invalidates the current token, but only when it is equal to the token passed as an argument.void
logout()
void
setMinTokenValidity
(long minTokenValidity)
-
Constructor Details
-
TokenManager
-
-
Method Details
-
getAccessTokenString
-
getAccessToken
-
grantToken
-
refreshToken
-
logout
public void logout() -
setMinTokenValidity
public void setMinTokenValidity(long minTokenValidity) -
invalidate
Invalidates the current token, but only when it is equal to the token passed as an argument.- Parameters:
token
- the token to invalidate (cannot be null).
-