Example usage for org.apache.shiro.mgt SessionsSecurityManager setSessionManager

List of usage examples for org.apache.shiro.mgt SessionsSecurityManager setSessionManager

Introduction

In this page you can find the example usage for org.apache.shiro.mgt SessionsSecurityManager setSessionManager.

Prototype

public void setSessionManager(SessionManager sessionManager) 

Source Link

Document

Sets the underlying delegate SessionManager instance that will be used to support this implementation's SessionManager method calls.

Usage

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

License:Apache License

protected SessionsSecurityManager securityManager(List<Realm> realms, SessionManager sessionManager) {
    SessionsSecurityManager securityManager = createSecurityManager();
    securityManager.setRealms(realms);//from  ww w  .j a va2  s  .  c o  m
    securityManager.setSessionManager(sessionManager);
    securityManager.setEventBus(eventBus);

    if (cacheManager != null) {
        securityManager.setCacheManager(cacheManager);
    }

    return securityManager;
}