Package io.tarantool.driver.auth
Class SimpleTarantoolCredentials
- java.lang.Object
-
- io.tarantool.driver.auth.SimpleTarantoolCredentials
-
- All Implemented Interfaces:
TarantoolCredentials
public class SimpleTarantoolCredentials extends Object implements TarantoolCredentials
Container for plain user and password data for authentication
-
-
Constructor Summary
Constructors Constructor Description SimpleTarantoolCredentials()Simple constructor which uses the default guest credentialsSimpleTarantoolCredentials(String user, String password)Basic constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPassword()StringgetUsername()Return the username to authenticate with its identitybooleanisGuest()booleanisValid()
-
-
-
Constructor Detail
-
SimpleTarantoolCredentials
public SimpleTarantoolCredentials(String user, String password)
Basic constructor.- Parameters:
user- non-empty usernamepassword- non-null password
-
SimpleTarantoolCredentials
public SimpleTarantoolCredentials()
Simple constructor which uses the default guest credentials
-
-
Method Detail
-
getUsername
public String getUsername()
Description copied from interface:TarantoolCredentialsReturn the username to authenticate with its identity- Specified by:
getUsernamein interfaceTarantoolCredentials- Returns:
- not empty username
-
getPassword
public String getPassword()
-
isValid
public boolean isValid()
-
isGuest
public boolean isGuest()
-
-