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

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

Introduction

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

Prototype

JdbcTokenRepositoryImpl

Source Link

Usage

From source file:cn.edu.zjnu.acm.judge.config.TokenRepositoryConfiguration.java

@Bean
public PersistentTokenRepository persistentTokenRepository(JdbcTemplate jdbcTemplate) {
    JdbcTokenRepositoryImpl jdbcTokenRepositoryImpl = new JdbcTokenRepositoryImpl();
    jdbcTokenRepositoryImpl.setJdbcTemplate(jdbcTemplate);
    jdbcTokenRepositoryImpl.setCreateTableOnStartup(false);
    return jdbcTokenRepositoryImpl;
}

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

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

From source file:hu.petabyte.redflags.web.cfg.SecurityRoles.java

private PersistentTokenRepository persistentTokenRepository() {
    JdbcTokenRepositoryImpl tr = new JdbcTokenRepositoryImpl();
    tr.setJdbcTemplate(jdbc);
    return tr;
}

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

public PersistentTokenRepository persistentTokenRepository() {
    JdbcTokenRepositoryImpl db = new JdbcTokenRepositoryImpl();
    db.setDataSource(dataSource);
    return db;
}

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

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

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

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

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:org.wallride.autoconfigure.WallRideSecurityConfiguration.java

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

From source file:org.springframework.security.web.authentication.rememberme.JdbcTokenRepositoryImplTests.java

@Before
public void populateDatabase() {
    repo = new JdbcTokenRepositoryImpl();
    ReflectionTestUtils.setField(repo, "logger", logger);
    repo.setDataSource(dataSource);/*  w w w.j  a  v a 2  s .  co  m*/
    repo.initDao();
    template = repo.getJdbcTemplate();
    template.execute("create table persistent_logins (username varchar(100) not null, "
            + "series varchar(100) not null, token varchar(500) not null, last_used timestamp not null)");
}