Class NimbusAuth
java.lang.Object
io.weaviate.client.v1.auth.nimbus.BaseAuth
io.weaviate.client.v1.auth.nimbus.NimbusAuth
-
Nested Class Summary
Nested classes/interfaces inherited from class io.weaviate.client.v1.auth.nimbus.BaseAuth
BaseAuth.AuthResponse -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAccessTokenProvider(Config config, String clientSecret, String username, String password, List<String> clientScopes, AuthType authType) protected AccessTokenProvidergetTokenProvider(Config config, BaseAuth.AuthResponse authResponse, List<String> clientScopes, String accessToken, long accessTokenLifeTime, String refreshToken, String clientSecret, AuthType authType) voidlogNoRefreshTokenWarning(long accessTokenLifetime) refreshClientCredentialsToken(Config config, BaseAuth.AuthResponse authResponse, List<String> clientScopes, String clientSecret) refreshToken(Config config, BaseAuth.AuthResponse authResponse, String refreshToken) Methods inherited from class io.weaviate.client.v1.auth.nimbus.BaseAuth
getIdAndTokenEndpoint
-
Constructor Details
-
NimbusAuth
public NimbusAuth()
-
-
Method Details
-
getAccessTokenProvider
public AccessTokenProvider getAccessTokenProvider(Config config, String clientSecret, String username, String password, List<String> clientScopes, AuthType authType) throws AuthException - Throws:
AuthException
-
getTokenProvider
protected AccessTokenProvider getTokenProvider(Config config, BaseAuth.AuthResponse authResponse, List<String> clientScopes, String accessToken, long accessTokenLifeTime, String refreshToken, String clientSecret, AuthType authType) -
refreshToken
-
refreshClientCredentialsToken
-
logNoRefreshTokenWarning
public void logNoRefreshTokenWarning(long accessTokenLifetime)
-