java.lang.Object
com.sap.cloud.sdk.services.openapi.apiclient.auth.HttpBasicAuth
All Implemented Interfaces:
Authentication

public class HttpBasicAuth extends Object implements Authentication
Authentication at the OpenAPI API by providing username and password
  • Constructor Details

    • HttpBasicAuth

      public HttpBasicAuth()
  • Method Details

    • getUsername

      @Nonnull public String getUsername()
      Get the username
      Returns:
      The username
    • setUsername

      public void setUsername(@Nonnull String username)
      Set the username
      Parameters:
      username - The username
    • getPassword

      @Nonnull public String getPassword()
      Get the password
      Returns:
      The password
    • setPassword

      public void setPassword(@Nonnull String password)
      Set the password
      Parameters:
      password - The password
    • applyToParams

      public void applyToParams(@Nonnull org.springframework.util.MultiValueMap<String,String> queryParams, @Nonnull org.springframework.http.HttpHeaders headerParams)
      Description copied from interface: Authentication
      Apply authentication settings to header and / or query parameters.
      Specified by:
      applyToParams in interface Authentication
      Parameters:
      queryParams - The query parameters for the request
      headerParams - The header parameters for the request