Package org.attribyte.sql.pool
Interface PasswordSource
- All Known Implementing Classes:
PropertiesPasswordSource
public interface PasswordSource
Allows connection passwords to be specified at runtime.
-
Method Summary
Modifier and TypeMethodDescriptiongetPassword(String connectionName) Gets the password for a named connection.getPassword(String connectionString, String username) Gets the password for a connection string and username.
-
Method Details
-
getPassword
Gets the password for a named connection.- Parameters:
connectionName- The connection name.- Returns:
- The password or
nullif none.
-
getPassword
Gets the password for a connection string and username.- Parameters:
connectionString- The connection string.username- The username.- Returns:
- The password or
nullif none.
-