Class OAuthClientManager

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

public class OAuthClientManager extends TokenManager
Manage OAuth client authorization.
  • Field Details

  • Constructor Details

    • OAuthClientManager

      public OAuthClientManager(String clientId, char[] clientSecret)
  • 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