Example usage for org.springframework.security.web.authentication.rememberme JdbcTokenRepositoryImpl setDataSource

List of usage examples for org.springframework.security.web.authentication.rememberme JdbcTokenRepositoryImpl setDataSource

Introduction

In this page you can find the example usage for org.springframework.security.web.authentication.rememberme JdbcTokenRepositoryImpl setDataSource.

Prototype

public final void setDataSource(DataSource dataSource) 

Source Link

Document

Set the JDBC DataSource to be used by this DAO.

Usage

From source file:com.jeanchampemont.notedown.config.WebSecurityConfiguration.java

@Bean
public PersistentTokenRepository persistentTokenRepository() {
    JdbcTokenRepositoryImpl repo = new JdbcTokenRepositoryImpl();
    repo.setDataSource(dataSource);
    return repo;//from   w ww  . ja va2s  . c  om
}

From source file:org.smigo.user.authentication.SecurityConfig.java

@Bean
public PersistentTokenRepository persistentTokenRepository() {
    JdbcTokenRepositoryImpl db = new JdbcTokenRepositoryImpl();
    db.setDataSource(dataSource);
    return db;//from   w  w w .  j  a va  2 s .co m
}

From source file:com.iservport.auth.SecurityWebConfig.java

public PersistentTokenRepository persistentTokenRepository() {
    JdbcTokenRepositoryImpl db = new JdbcTokenRepositoryImpl();
    db.setDataSource(dataSource);
    return db;/*from w  w  w . j  a v  a 2s.  c  o  m*/
}

From source file:com.searchbox.framework.config.SecurityConfig.java

@Bean
public PersistentTokenRepository persistentTokenRepository() {
    JdbcTokenRepositoryImpl tokenRepository = new JdbcTokenRepositoryImpl();
    tokenRepository.setDataSource(dataSource);
    return tokenRepository;
}

From source file:de.alexandria.cms.config.SpringConfigBackendDatabase.java

@Bean
public PersistentTokenRepository persistentTokenRepository() {
    JdbcTokenRepositoryImpl db = new JdbcTokenRepositoryImpl();
    db.setDataSource(pooledDataSource());
    return db;/*  w ww .j  a v  a  2  s  .  c o  m*/
}

From source file:org.wallride.autoconfigure.WallRideSecurityConfiguration.java

@Bean
public PersistentTokenRepository persistentTokenRepository() {
    JdbcTokenRepositoryImpl repository = new JdbcTokenRepositoryImpl();
    repository.setDataSource(dataSource);
    return repository;
}