All Downloads are FREE. Search and download functionalities are using the official Maven repository.

codegen-templates.net.leanix.api.common.auth.OAuth Maven / Gradle / Ivy

There is a newer version: 3.9.32
Show newest version
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