public void checkCredentials(String clUser, String clPass) throws SQLException {
    if (clUser == null || !clUser.equals(user) || clPass == null || !clPass.equals(password)) {
      String error =
          String.format(
              "Cannot create a connection with the user, %s, as it doesnt match the existing user named %s, or the password was incorrect.",
              clUser, clPass);
      throw new SQLException(error);
    }
  }
Authenticates the username and password for the database connection.

@param clUser The username for the database connection
@param clPass The password for the database connection
geode-core/src/main/java/org/apache/geode/internal/datasource/AbstractDataSource.java