Class FireboltAuthenticationClient
java.lang.Object
com.firebolt.jdbc.client.FireboltClient
com.firebolt.jdbc.client.authentication.FireboltAuthenticationClient
- All Implemented Interfaces:
CacheListener
,EventListener
-
Field Summary
Fields inherited from class com.firebolt.jdbc.client.FireboltClient
connection
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
FireboltAuthenticationClient
(okhttp3.OkHttpClient httpClient, FireboltConnection connection, String customDrivers, String customClients) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract AuthenticationRequest
getAuthenticationRequest
(String username, String password, String host, String environment) postConnectionTokens
(String host, String user, String password, String environment) Sends POST to obtain connection tokensMethods inherited from class com.firebolt.jdbc.client.FireboltClient
cleanup, createPostRequest, createPostRequest, execute, execute, getResource, getResource, getResponseAsString, isCallSuccessful, jsonToObject, validateResponse, validateResponse
-
Constructor Details
-
FireboltAuthenticationClient
protected FireboltAuthenticationClient(okhttp3.OkHttpClient httpClient, FireboltConnection connection, String customDrivers, String customClients)
-
-
Method Details
-
postConnectionTokens
public FireboltConnectionTokens postConnectionTokens(String host, String user, String password, String environment) throws SQLException, IOException Sends POST to obtain connection tokens- Parameters:
host
- the hostuser
- the usernamepassword
- the passwordenvironment
- the environment- Returns:
- the connection tokens
- Throws:
SQLException
IOException
-
getAuthenticationRequest
protected abstract AuthenticationRequest getAuthenticationRequest(String username, String password, String host, String environment)
-