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

public class OAuth extends Object implements Authentication
Authentication at the REST API via an OAuth access token
  • Constructor Details

    • OAuth

      public OAuth()
  • Method Details

    • getAccessToken

      @Nonnull public String getAccessToken()
      Get the access token
      Returns:
      The access token
    • setAccessToken

      public void setAccessToken(@Nonnull String accessToken)
      Set the access token
      Parameters:
      accessToken - The access token
    • 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