Java 类org.springframework.security.web.authentication.rememberme.JdbcTokenRepositoryImpl 实例源码

项目:REST-Web-Services    文件:WebSecurityConfig.java   
/**
 * Used to store the persistent login tokens for a user.
 */
@Bean
public PersistentTokenRepository persistentTokenRepository() {
    final JdbcTokenRepositoryImpl impl = new JdbcTokenRepositoryImpl();
    impl.setDataSource(dataSource);
    return impl;
}
项目:Sound.je    文件:WebSecurityConfig.java   
/**
 * Persistent token repository persistent token repository.
 *
 * @return the persistent token repository
 */
@Bean
public PersistentTokenRepository persistentTokenRepository() {
    JdbcTokenRepositoryImpl jdbcTokenRepository = new JdbcTokenRepositoryImpl();
    jdbcTokenRepository.setDataSource(dataSource);
    return jdbcTokenRepository;
}
项目:spring-cloud-demos    文件:SecurityConfig.java   
@Bean// browser remember me
PersistentTokenBasedRememberMeServices persistentTokenBasedRememberMeServices(){
    PersistentTokenBasedRememberMeServices p =
            new PersistentTokenBasedRememberMeServices("SpringRocks",myUserDetailService,new JdbcTokenRepositoryImpl());
    p.setCookieName("JSESSIONID");
    return p;
}
项目:pathological-reports    文件:SecurityConfiguration.java   
@Bean
public PersistentTokenRepository persistentTokenRepository() {
    JdbcTokenRepositoryImpl db = new JdbcTokenRepositoryImpl();
    db.setDataSource(dataSource);

    return db;
}
项目:hockey-game    文件:SecurityConfiguration.java   
@Bean
public PersistentTokenRepository persistentTokenRepository() {
    JdbcTokenRepositoryImpl db = new JdbcTokenRepositoryImpl();
    db.setDataSource(dataSource);

    return db;
}
项目:judge    文件:TokenRepositoryConfiguration.java   
@Bean
public PersistentTokenRepository persistentTokenRepository(JdbcTemplate jdbcTemplate) {
    JdbcTokenRepositoryImpl jdbcTokenRepositoryImpl = new JdbcTokenRepositoryImpl();
    jdbcTokenRepositoryImpl.setJdbcTemplate(jdbcTemplate);
    jdbcTokenRepositoryImpl.setCreateTableOnStartup(false);
    return jdbcTokenRepositoryImpl;
}
项目:Vaadin4Spring-MVP-Sample-SpringSecurity    文件:SecurityConfig.java   
@Bean
public PersistentTokenRepository jdbcTokenRepository() {
    JdbcTokenRepositoryImpl repository = new JdbcTokenRepositoryImpl();
    repository.setCreateTableOnStartup(false);
    repository.setDataSource(dataSource);           
    return repository;
}
项目:enhanced-pet-clinic    文件:MultiHttpSecurityConfig.java   
@Bean
public RememberMeServices getRememberMeServices() {
    JdbcUserDetailsManager jdbcUserDetailsManager = new JdbcUserDetailsManager();
    jdbcUserDetailsManager.setDataSource(dataSource);

    JdbcTokenRepositoryImpl jdbcTokenRepositoryImpl = new JdbcTokenRepositoryImpl();
    jdbcTokenRepositoryImpl.setDataSource(dataSource);

    PersistentTokenBasedRememberMeServices services = new PersistentTokenBasedRememberMeServices(
            rememberMeToken, jdbcUserDetailsManager, jdbcTokenRepositoryImpl);
    services.setParameter(rememberMeParameter);
    return services;
}
项目:leafer    文件:WebSecurityConfig.java   
@Bean
public PersistentTokenRepository persistentTokenRepository() {
    JdbcTokenRepositoryImpl tokenRepository = new JdbcTokenRepositoryImpl();
    tokenRepository.setDataSource(dataSource);
    return tokenRepository;
}
项目:QuizZz    文件:SecurityConfig.java   
@Bean
public PersistentTokenRepository persistentTokenRepository() {
    JdbcTokenRepositoryImpl db = new JdbcTokenRepositoryImpl();
    db.setDataSource(dataSource);
    return db;
}
项目:AntiSocial-Platform    文件:SecurityConfiguration.java   
@Bean
public PersistentTokenRepository persistentTokenRepository(){
    JdbcTokenRepositoryImpl tokenRepository = new JdbcTokenRepositoryImpl();
    tokenRepository.setDataSource(dataSource);
    return tokenRepository;
}
项目:AntiSocial-Platform    文件:SecurityConfiguration.java   
@Bean
public PersistentTokenRepository persistentTokenRepository(){
    JdbcTokenRepositoryImpl tokenRepository = new JdbcTokenRepositoryImpl();
    tokenRepository.setDataSource(dataSource);
    return tokenRepository;
}
项目:spring-security-basics    文件:SecurityConfig.java   
@Bean
public PersistentTokenRepository persistentTokenRepository() {
    final JdbcTokenRepositoryImpl jdbcTokenRepositoryImpl = new JdbcTokenRepositoryImpl();
    jdbcTokenRepositoryImpl.setDataSource(dataSource);
    return jdbcTokenRepositoryImpl;
}
项目:redflags    文件:SecurityRoles.java   
private PersistentTokenRepository persistentTokenRepository() {
    JdbcTokenRepositoryImpl tr = new JdbcTokenRepositoryImpl();
    tr.setJdbcTemplate(jdbc);
    return tr;
}
项目:notedown    文件:WebSecurityConfiguration.java   
@Bean
public PersistentTokenRepository persistentTokenRepository() {
    JdbcTokenRepositoryImpl repo = new JdbcTokenRepositoryImpl();
    repo.setDataSource(dataSource);
    return repo;
}
项目:grassroot-platform    文件:SecurityConfig.java   
@Bean
public PersistentTokenRepository persistentTokenRepository() {
    JdbcTokenRepositoryImpl db = new JdbcTokenRepositoryImpl();
    db.setDataSource(dataSource);
    return db;
}
项目:notedown    文件:WebSecurityConfiguration.java   
@Bean
public PersistentTokenRepository persistentTokenRepository() {
    JdbcTokenRepositoryImpl repo = new JdbcTokenRepositoryImpl();
    repo.setDataSource(dataSource);
    return repo;
}