Class NimbusAuth
- java.lang.Object
-
- io.weaviate.client.v1.auth.nimbus.BaseAuth
-
- io.weaviate.client.v1.auth.nimbus.NimbusAuth
-
public class NimbusAuth extends BaseAuth
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.weaviate.client.v1.auth.nimbus.BaseAuth
BaseAuth.AuthResponse
-
-
Constructor Summary
Constructors Constructor Description NimbusAuth()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessTokenProvidergetAccessTokenProvider(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)StringrefreshClientCredentialsToken(Config config, BaseAuth.AuthResponse authResponse, List<String> clientScopes, String clientSecret)StringrefreshToken(Config config, BaseAuth.AuthResponse authResponse, String refreshToken)-
Methods inherited from class io.weaviate.client.v1.auth.nimbus.BaseAuth
getIdAndTokenEndpoint
-
-
-
-
Method Detail
-
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
public String refreshToken(Config config, BaseAuth.AuthResponse authResponse, String refreshToken)
-
refreshClientCredentialsToken
public String refreshClientCredentialsToken(Config config, BaseAuth.AuthResponse authResponse, List<String> clientScopes, String clientSecret)
-
logNoRefreshTokenWarning
public void logNoRefreshTokenWarning(long accessTokenLifetime)
-
-