예제 #1
0
 @Bean
 public SecurityManager securityManager(Realm shiroRealm, CacheManager ehCacheManager) {
   DefaultWebSecurityManager securityManager = new DefaultWebSecurityManager();
   securityManager.setRealm(shiroRealm);
   securityManager.setCacheManager(ehCacheManager);
   return securityManager;
 }
예제 #2
0
 @Bean(name = "securityManager")
 public DefaultWebSecurityManager getDefaultWebSecurityManager() {
   DefaultWebSecurityManager securityManager = new DefaultWebSecurityManager();
   securityManager.setRealm(getShiroRealm());
   securityManager.setCacheManager(getEhCacheManager());
   return securityManager;
 }
예제 #3
0
  @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;
 }