@Bean public SecurityManager securityManager(Realm shiroRealm, CacheManager ehCacheManager) { DefaultWebSecurityManager securityManager = new DefaultWebSecurityManager(); securityManager.setRealm(shiroRealm); securityManager.setCacheManager(ehCacheManager); return securityManager; }
@Bean(name = "securityManager") public DefaultWebSecurityManager getDefaultWebSecurityManager() { DefaultWebSecurityManager securityManager = new DefaultWebSecurityManager(); securityManager.setRealm(getShiroRealm()); securityManager.setCacheManager(getEhCacheManager()); return securityManager; }
@Bean(name = "securityManager") public org.apache.shiro.mgt.SecurityManager securityManager() { logger.debug("create security manager."); DefaultWebSecurityManager securityManager = new DefaultWebSecurityManager(); securityManager.setRealm(realm()); securityManager.setSessionManager(sessionManager()); securityManager.setRememberMeManager(rememberMeManager()); securityManager.setCacheManager(cacheManager()); return securityManager; }
@Bean(name = "securityManager") public WebSecurityManager securityManager() { DefaultWebSecurityManager securityManager = new DefaultWebSecurityManager(); securityManager.setRealm(realm()); return securityManager; }