Class TokenManager


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

      • TokenManager

        public TokenManager​(Config config,
                            javax.ws.rs.client.Client client)
    • Method Detail

      • getAccessTokenString

        public String getAccessTokenString()
      • 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).