Class APITokenManager

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

public class APITokenManager extends TokenManager
Manage API tokens.
  • Field Details

  • Constructor Details

    • APITokenManager

      public APITokenManager(char[] token)
  • 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