Example usage for org.apache.shiro.session.mgt DefaultSessionManager DefaultSessionManager

List of usage examples for org.apache.shiro.session.mgt DefaultSessionManager DefaultSessionManager

Introduction

In this page you can find the example usage for org.apache.shiro.session.mgt DefaultSessionManager DefaultSessionManager.

Prototype

public DefaultSessionManager() 

Source Link

Usage

From source file:cn.fh.starter.shiro.autoconfigure.ShiroManager.java

License:Apache License

@Bean
@ConditionalOnMissingBean/*from   w w w  .  j  av a 2 s.c o  m*/
public DefaultSessionManager defaultSessionManager() {
    DefaultSessionManager manager = new DefaultSessionManager();

    // session
    manager.setSessionValidationSchedulerEnabled(false);

    return manager;
}

From source file:com.stormpath.shiro.spring.config.AbstractShiroConfiguration.java

License:Apache License

protected SessionManager sessionManager() {
    return new DefaultSessionManager();
}

From source file:io.bootique.shiro.ShiroModule.java

License:Apache License

@Provides
@Singleton
SessionManager provideSessionManager() {
    return new DefaultSessionManager();
}

From source file:net.kr9ly.thinfw.dagger.module.AppSecurityManagerModule.java

License:Apache License

@ApplicationScope
@Provides/*from  w w  w  .  j  av a2  s  .  c o  m*/
SessionManager sessionManager() {
    DefaultSessionManager sessionManager = new DefaultSessionManager();
    EnterpriseCacheSessionDAO sessionDAO = new EnterpriseCacheSessionDAO();
    sessionDAO.setSessionIdGenerator(new JavaUuidSessionIdGenerator());
    sessionManager.setSessionDAO(new EnterpriseCacheSessionDAO());
    sessionManager.setCacheManager(new EhCacheManager());
    return sessionManager;
}