public final class ChapSha1TarantoolAuthenticator extends Object implements TarantoolAuthenticator
| Modifier and Type | Field and Description |
|---|---|
static ChapSha1TarantoolAuthenticator |
INSTANCE
Singleton instance of this authenticator
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAuthenticateWith(TarantoolCredentials credentials)
Check if the passed instance of
SimpleTarantoolCredentials can be used for authentication |
boolean |
canSkipAuth(TarantoolCredentials credentials)
Check if the passed instance of
SimpleTarantoolCredentials can be used for authentication |
TarantoolAuthMechanism |
getMechanism()
Returns the supported
TarantoolAuthMechanism |
byte[] |
prepareUserAuthData(byte[] serverAuthData,
TarantoolCredentials credentials)
Take the salt from the server connect response, write the authentication data based on the provided
SimpleTarantoolCredentials. |
public static final ChapSha1TarantoolAuthenticator INSTANCE
public TarantoolAuthMechanism getMechanism()
TarantoolAuthMechanismgetMechanism in interface TarantoolAuthenticatorTarantoolAuthMechanism.CHAPSHA1AuthMechanismpublic boolean canAuthenticateWith(TarantoolCredentials credentials)
SimpleTarantoolCredentials can be used for authenticationcanAuthenticateWith in interface TarantoolAuthenticatorcredentials - Tarantool user credentialspublic boolean canSkipAuth(TarantoolCredentials credentials)
SimpleTarantoolCredentials can be used for authenticationcanSkipAuth in interface TarantoolAuthenticatorcredentials - Tarantool user credentialspublic byte[] prepareUserAuthData(byte[] serverAuthData,
TarantoolCredentials credentials)
throws TarantoolAuthenticationException
SimpleTarantoolCredentials.
prepareUserAuthData in interface TarantoolAuthenticatorserverAuthData - the auth data responded by server to the connect requestcredentials - Tarantool user credentialsTarantoolAuthenticationException - id authentication failedCopyright © 2025 Picodata. All rights reserved.