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 String
getPassword()
String
getUsername()
Return the username to authenticate with its identityboolean
isGuest()
boolean
isValid()
-
-
-
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:TarantoolCredentials
Return the username to authenticate with its identity- Specified by:
getUsername
in interfaceTarantoolCredentials
- Returns:
- not empty username
-
getPassword
public String getPassword()
-
isValid
public boolean isValid()
-
isGuest
public boolean isGuest()
-
-