Class LocalTokenManager

java.lang.Object
com.atlan.auth.TokenManager
com.atlan.auth.LocalTokenManager

public class LocalTokenManager extends TokenManager
Manage authorization against a locally-running setup.
  • Constructor Details

    • LocalTokenManager

      public LocalTokenManager(String basicAuth)
  • Method Details

    • getAuthHeader

      protected String getAuthHeader()
      Retrieve the header to use for Authorization using this token.
      Specified by:
      getAuthHeader in class TokenManager
      Returns:
      the value for the Authorization header
    • refreshToken

      protected boolean refreshToken(AtlanClient client) throws AtlanException
      Refresh the API token.
      Specified by:
      refreshToken in class TokenManager
      Parameters:
      client - through which to refresh the token
      Returns:
      true iff the refresh was successful
      Throws:
      AtlanException - on any API communication issue