package org.apereo.cas.adaptors.jdbc;
|
|
import javax.sql.DataSource;
|
import org.apereo.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler;
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
/**
|
*
|
* @author
|
* @since
|
*/
|
public abstract class AbstractJdbcUsernamePasswordAuthenticationHandler extends AbstractUsernamePasswordAuthenticationHandler {
|
private JdbcTemplate jdbcTemplate;
|
|
private DataSource dataSource;
|
|
public void setDataSource(DataSource dataSource) {
|
this.jdbcTemplate = new JdbcTemplate(dataSource);
|
this.dataSource = dataSource;
|
}
|
|
protected JdbcTemplate getJdbcTemplate() { return this.jdbcTemplate; }
|
|
protected DataSource getDataSource() { return this.dataSource; }
|
}
|