codegen-templates.net.leanix.api.common.auth.OAuth Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leanix-sdk-java Show documentation
Show all versions of leanix-sdk-java Show documentation
SDK for Java to access leanIX REST API
package net.leanix.api.common.auth;
import java.util.List;
import java.util.Map;
import net.leanix.api.common.ApiException;
import net.leanix.api.common.Pair;
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) throws ApiException {
if (accessToken != null) {
headerParams.put("Authorization", "Bearer " + accessToken);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy