org.renci.io.swagger.client.auth.OAuth Maven / Gradle / Ivy
package org.renci.io.swagger.client.auth;
import java.util.Map;
import org.renci.io.swagger.client.Pair;
import java.util.List;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-05-29T17:51:04.480Z")
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) {
if (accessToken != null) {
headerParams.put("Authorization", "Bearer " + accessToken);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy