java.lang.Object
overit.geocallapp.wfm.orchestrator.planning.utilities.rest.authentication.strategies.ApiTokenAuthentication
All Implemented Interfaces:
AuthenticationStrategy

public class ApiTokenAuthentication extends Object implements AuthenticationStrategy
Authentication strategy that uses a static API token. This strategy is suitable for APIs that use a fixed token for authentication.
  • Field Details

  • Constructor Details

    • ApiTokenAuthentication

      public ApiTokenAuthentication(String token)
      Creates a new API token authentication with the specified token and "Bearer" prefix.
      Parameters:
      token - The API token to use for authentication
    • ApiTokenAuthentication

      public ApiTokenAuthentication(String token, String prefix)
      Creates a new API token authentication with the specified token and prefix.
      Parameters:
      token - The API token to use for authentication
      prefix - The prefix to use before the token (e.g., "Bearer", "Token", "ApiKey")
  • Method Details