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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.keycloak.representations.AccessTokenResponseorg.keycloak.representations.AccessTokenResponsevoidinvalidate(String token) Invalidates the current token, but only when it is equal to the token passed as an argument.voidlogout()org.keycloak.representations.AccessTokenResponsevoidsetMinTokenValidity(long minTokenValidity)
-
Constructor Details
-
TokenManager
-
-
Method Details
-
getAccessTokenString
-
getAccessToken
public org.keycloak.representations.AccessTokenResponse getAccessToken() -
grantToken
public org.keycloak.representations.AccessTokenResponse grantToken() -
refreshToken
public org.keycloak.representations.AccessTokenResponse 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).
-
getDpopKeyPair
- Returns:
- dpopKeyPair if it was generated or null if DPoP is not being requested by the configuration
-