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

io.weaviate.client.v1.auth.ApiKeyFlow Maven / Gradle / Ivy

There is a newer version: 4.9.0
Show newest version
// 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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy