Search in sources :

Example 21 with DefaultWebSecurityManager

use of org.apache.shiro.web.mgt.DefaultWebSecurityManager in project shiro by apache.

the class AbstractShiroWebConfiguration method createSecurityManager.

protected SessionsSecurityManager createSecurityManager() {
    DefaultWebSecurityManager securityManager = new DefaultWebSecurityManager();
    securityManager.setSubjectDAO(subjectDAO());
    securityManager.setSubjectFactory(subjectFactory());
    securityManager.setRememberMeManager(rememberMeManager());
    return securityManager;
}
Also used : DefaultWebSecurityManager(org.apache.shiro.web.mgt.DefaultWebSecurityManager)

Aggregations

DefaultWebSecurityManager (org.apache.shiro.web.mgt.DefaultWebSecurityManager)21 ShiroFilterFactoryBean (org.apache.shiro.spring.web.ShiroFilterFactoryBean)9 Bean (org.springframework.context.annotation.Bean)9 Realm (org.apache.shiro.realm.Realm)6 CookieRememberMeManager (org.apache.shiro.web.mgt.CookieRememberMeManager)3 MalformedURLException (java.net.MalformedURLException)2 ConfigurationException (org.apache.shiro.config.ConfigurationException)2 IniRealm (org.apache.shiro.realm.text.IniRealm)2 WebSecurityManager (org.apache.shiro.web.mgt.WebSecurityManager)2 DefaultWebSessionManager (org.apache.shiro.web.session.mgt.DefaultWebSessionManager)2 LdapRealm (org.apache.zeppelin.realm.LdapRealm)2 Test (org.junit.Test)2 Injector (com.google.inject.Injector)1 Provides (com.google.inject.Provides)1 ArrayList (java.util.ArrayList)1 Filter (javax.servlet.Filter)1 ServletContext (javax.servlet.ServletContext)1 Cookie (javax.servlet.http.Cookie)1 AuthenticationStrategy (org.apache.shiro.authc.pam.AuthenticationStrategy)1 ModularRealmAuthenticator (org.apache.shiro.authc.pam.ModularRealmAuthenticator)1