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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToParams(org.springframework.util.MultiValueMap<String, String> queryParams, org.springframework.http.HttpHeaders headerParams) Apply authentication settings to header and / or query parameters.Get the access tokenvoidsetAccessToken(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:AuthenticationApply authentication settings to header and / or query parameters.- Specified by:
applyToParamsin interfaceAuthentication- Parameters:
queryParams- The query parameters for the requestheaderParams- The header parameters for the request
-