Interface PasswordSource

All Known Implementing Classes:
PropertiesPasswordSource

public interface PasswordSource
Allows connection passwords to be specified at runtime.
  • Method Summary

    Modifier and Type
    Method
    Description
    getPassword(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

      String getPassword(String connectionName)
      Gets the password for a named connection.
      Parameters:
      connectionName - The connection name.
      Returns:
      The password or null if none.
    • getPassword

      String getPassword(String connectionString, String username)
      Gets the password for a connection string and username.
      Parameters:
      connectionString - The connection string.
      username - The username.
      Returns:
      The password or null if none.