io.weaviate.client.v1.auth.ApiKeyFlow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client Show documentation
Show all versions of client Show documentation
A java client for Weaviate Vector Search Engine
// Generated by delombok at Tue Mar 05 13:44:27 UTC 2024
package io.weaviate.client.v1.auth;
import io.weaviate.client.Config;
import io.weaviate.client.WeaviateClient;
import io.weaviate.client.v1.auth.exception.AuthException;
import java.util.List;
public class ApiKeyFlow implements Authentication {
private final String apiKey;
@Override
public WeaviateClient getAuthClient(Config config, List scopes) throws AuthException {
return getAuthClient(config);
}
@Override
public WeaviateClient getAuthClient(Config config) throws AuthException {
return new WeaviateClient(config, () -> apiKey);
}
@java.lang.SuppressWarnings("all")
public ApiKeyFlow(final String apiKey) {
this.apiKey = apiKey;
}
}