com.kintone.client.model.ApiTokenAuth Maven / Gradle / Ivy
// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client.model;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
class ApiTokenAuth implements Auth {
private final Collection apiTokens;
@Override
public Map getHeaders() {
Map headers = new HashMap<>();
String value = String.join(",", apiTokens);
headers.put("X-Cybozu-API-Token", value);
return headers;
}
@java.beans.ConstructorProperties({"apiTokens"})
@java.lang.SuppressWarnings("all")
ApiTokenAuth(final Collection apiTokens) {
this.apiTokens = apiTokens;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy