public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }
Sets the datasource that should be used to retrieve connections used by this realm.

@param dataSource the SQL data source.
core/src/main/java/org/apache/shiro/realm/jdbc/JdbcRealm.java