13693261870
2022-09-20 a666b5f9741ef9b21f547d3b2141752a0383c70c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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; }
}