Class RdsSecretsCredentialProvider
- java.lang.Object
-
- com.amazonaws.athena.connectors.jdbc.connection.RdsSecretsCredentialProvider
-
- All Implemented Interfaces:
JdbcCredentialProvider
public class RdsSecretsCredentialProvider extends Object implements JdbcCredentialProvider
Encapsulates RDS secrets deserialization. AWS Secrets Manager managed RDS credentials are stored in following JSON format (showing minimal required for extraction):{ "username": "${user}", "password": "${password}" }
-
-
Constructor Summary
Constructors Constructor Description RdsSecretsCredentialProvider(String secretString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JdbcCredential
getCredential()
Retrieves credential for database.
-
-
-
Constructor Detail
-
RdsSecretsCredentialProvider
public RdsSecretsCredentialProvider(String secretString)
-
-
Method Detail
-
getCredential
public JdbcCredential getCredential()
Description copied from interface:JdbcCredentialProvider
Retrieves credential for database.- Specified by:
getCredential
in interfaceJdbcCredentialProvider
- Returns:
- JDBC credential. See
JdbcCredential
.
-
-