Class TokenManager

java.lang.Object
org.keycloak.admin.client.token.TokenManager

public class TokenManager extends Object
Author:
rodrigo.sasaki@icarros.com.br
  • Constructor Details

    • TokenManager

      public TokenManager(Config config, jakarta.ws.rs.client.Client client)
  • Method Details

    • getAccessTokenString

      public String getAccessTokenString()
    • getAccessToken

      public AccessTokenResponse getAccessToken()
    • grantToken

      public AccessTokenResponse grantToken()
    • refreshToken

      public AccessTokenResponse refreshToken()
    • logout

      public void logout()
    • setMinTokenValidity

      public void setMinTokenValidity(long minTokenValidity)
    • invalidate

      public void invalidate(String token)
      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).