Class DefaultCredentials
- java.lang.Object
-
- com.amazonaws.athena.connector.credentials.DefaultCredentials
-
- All Implemented Interfaces:
Credentials
public class DefaultCredentials extends Object implements Credentials
Encapsulates database connection user name and password information.
-
-
Constructor Summary
Constructors Constructor Description DefaultCredentials(String user, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getPassword()
Map<String,String>
getProperties()
Gets the credential properties for database authentication.String
getUser()
int
hashCode()
-
-
-
Method Detail
-
getUser
public String getUser()
-
getPassword
public String getPassword()
-
getProperties
public Map<String,String> getProperties()
Description copied from interface:Credentials
Gets the credential properties for database authentication. Keys are property names (e.g., "username", "password", "accesToken"), and values are the associated property values.- Specified by:
getProperties
in interfaceCredentials
- Returns:
- a map of credential property names to values
-
-