com.konfigthis.splitit.client.auth.OAuth Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of splitit-web-java-sdk Show documentation
Show all versions of splitit-web-java-sdk Show documentation
Splitit's Web API
This library was generated by https://konfigthis.com
/*
* splitit-web-api-v3
* Splitit's Web API
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by Konfig (https://konfigthis.com).
* Do not edit the class manually.
*/
package com.konfigthis.splitit.client.auth;
import com.konfigthis.splitit.client.Pair;
import com.konfigthis.splitit.client.ApiException;
import java.net.URI;
import java.util.Map;
import java.util.List;
@javax.annotation.Generated(value = "Generated by https://konfigthis.com")
public class OAuth implements Authentication {
private String accessToken;
public String getAccessToken() {
return accessToken;
}
public void setAccessToken(String accessToken) {
this.accessToken = accessToken;
}
@Override
public void applyToParams(List queryParams, Map headerParams, Map cookieParams,
String payload, String method) throws ApiException {
if (accessToken != null) {
headerParams.put("Authorization", "Bearer " + accessToken);
}
}
}