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

net.leanix.dropkit.apiclient.auth.OAuth Maven / Gradle / Ivy

There is a newer version: 1.7.25
Show newest version
package net.leanix.dropkit.apiclient.auth;

import net.leanix.dropkit.apiclient.ApiException;
import net.leanix.dropkit.apiclient.Pair;

import java.util.Map;
import java.util.List;

@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-04-11T10:05:59.456+02:00")
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