Class OAuth
java.lang.Object
com.sap.cloud.sdk.services.openapi.apiclient.auth.OAuth
- All Implemented Interfaces:
Authentication
Authentication at the REST API via an OAuth access token
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyToParams
(org.springframework.util.MultiValueMap<String, String> queryParams, org.springframework.http.HttpHeaders headerParams) Apply authentication settings to header and / or query parameters.Get the access tokenvoid
setAccessToken
(String accessToken) Set the access token
-
Constructor Details
-
OAuth
public OAuth()
-
-
Method Details
-
getAccessToken
Get the access token- Returns:
- The access token
-
setAccessToken
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 interfaceAuthentication
- Parameters:
queryParams
- The query parameters for the requestheaderParams
- The header parameters for the request
-