Package com.clickhouse.client
Class ClickHouseCredentials
java.lang.Object
com.clickhouse.client.ClickHouseCredentials
- All Implemented Interfaces:
Serializable
Deprecated.
This encapsulates access token, certificate or user name password combination
for accessing ClickHouse.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClickHouseCredentials(String accessToken) Deprecated.Construct credentials object using access token.protectedClickHouseCredentials(String userName, String password) Deprecated.Construct credentials using user name and password. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.static ClickHouseCredentialsfromAccessToken(String accessToken) Deprecated.Create credentials from access token.static ClickHouseCredentialsfromUserAndPassword(String userName, String password) Deprecated.Create credentials from user name and password.Deprecated.Get access token.Deprecated.Get password.Deprecated.Get user name.inthashCode()Deprecated.booleanDeprecated.
-
Constructor Details
-
ClickHouseCredentials
Deprecated.Construct credentials object using access token.- Parameters:
accessToken- access token
-
ClickHouseCredentials
Deprecated.Construct credentials using user name and password.- Parameters:
userName- user namepassword- password
-
-
Method Details
-
fromAccessToken
Deprecated.Create credentials from access token.- Parameters:
accessToken- access token- Returns:
- credentials object for authentication
-
fromUserAndPassword
Deprecated.Create credentials from user name and password.- Parameters:
userName- user namepassword- password- Returns:
- credentials object for authentication
-
useAccessToken
public boolean useAccessToken()Deprecated. -
getAccessToken
Deprecated.Get access token.- Returns:
- access token
-
getUserName
Deprecated.Get user name.- Returns:
- user name
-
getPassword
Deprecated.Get password.- Returns:
- password
-
hashCode
public int hashCode()Deprecated. -
equals
Deprecated.
-