Package io.weaviate.client
Class WeaviateAuthClient
java.lang.Object
io.weaviate.client.WeaviateAuthClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WeaviateClientapiKey returns a new WeaviateClient with ApiKey token provider.static WeaviateClientbearerToken(Config config, String accessToken, long accessTokenLifetime, String refreshToken) static WeaviateClientclientCredentials(Config config, String clientSecret, List<String> scopes) static WeaviateClient
-
Constructor Details
-
WeaviateAuthClient
public WeaviateAuthClient()
-
-
Method Details
-
clientCredentials
public static WeaviateClient clientCredentials(Config config, String clientSecret, List<String> scopes) throws AuthException - Throws:
AuthException
-
clientPassword
public static WeaviateClient clientPassword(Config config, String username, String password, List<String> scopes) throws AuthException - Throws:
AuthException
-
bearerToken
public static WeaviateClient bearerToken(Config config, String accessToken, long accessTokenLifetime, String refreshToken) throws AuthException - Throws:
AuthException
-
apiKey
apiKey returns a new WeaviateClient with ApiKey token provider. If the host is a Weaviate domain, it also adds headers necessary for authenticating to Weaviate Embeddings service.- Throws:
AuthException
-