Class ShiroWebAutoConfiguration
java.lang.Object
org.apache.shiro.spring.config.AbstractShiroConfiguration
org.apache.shiro.spring.web.config.AbstractShiroWebConfiguration
org.apache.shiro.spring.config.web.autoconfigure.ShiroWebAutoConfiguration
@Configuration
@AutoConfigureBefore(ShiroAutoConfiguration.class)
@AutoConfigureAfter(ShiroWebMvcAutoConfiguration.class)
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnProperty(name="shiro.web.enabled",
matchIfMissing=true)
public class ShiroWebAutoConfiguration
extends org.apache.shiro.spring.web.config.AbstractShiroWebConfiguration
- Since:
- 1.4.0
-
Field Summary
Fields inherited from class org.apache.shiro.spring.web.config.AbstractShiroWebConfiguration
rememberMeCookieDomain, rememberMeCookieMaxAge, rememberMeCookieName, rememberMeCookiePath, rememberMeCookieSecure, rememberMeSameSite, sessionIdCookieDomain, sessionIdCookieEnabled, sessionIdCookieMaxAge, sessionIdCookieName, sessionIdCookiePath, sessionIdCookieSameSite, sessionIdCookieSecure, sessionIdUrlRewritingEnabled, useNativeSessionManagerFields inherited from class org.apache.shiro.spring.config.AbstractShiroConfiguration
cacheManager, eventBus, permissionResolver, rolePermissionResolver, sessionManagerDeleteInvalidSessions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.shiro.authc.pam.AuthenticationStrategyprotected org.apache.shiro.authc.Authenticatorprotected org.apache.shiro.authz.Authorizerprotected org.apache.shiro.web.servlet.Cookieprotected org.apache.shiro.mgt.RememberMeManagerprotected org.apache.shiro.mgt.SessionsSecurityManagersecurityManager(List<org.apache.shiro.realm.Realm> realms) protected org.apache.shiro.web.servlet.Cookieprotected org.apache.shiro.session.mgt.eis.SessionDAOprotected org.apache.shiro.session.mgt.SessionFactoryprotected org.apache.shiro.session.mgt.SessionManagerprotected org.apache.shiro.mgt.SessionStorageEvaluatorprotected org.apache.shiro.spring.web.config.ShiroFilterChainDefinitionprotected org.apache.shiro.spring.web.ShiroUrlPathHelperprotected org.apache.shiro.mgt.SubjectDAOprotected org.apache.shiro.mgt.SubjectFactoryMethods inherited from class org.apache.shiro.spring.web.config.AbstractShiroWebConfiguration
buildCookie, buildCookie, createSecurityManager, nativeSessionManagerMethods inherited from class org.apache.shiro.spring.config.AbstractShiroConfiguration
iniRealmFromLocation
-
Constructor Details
-
ShiroWebAutoConfiguration
public ShiroWebAutoConfiguration()
-
-
Method Details
-
authenticationStrategy
@Bean @ConditionalOnMissingBean protected org.apache.shiro.authc.pam.AuthenticationStrategy authenticationStrategy()- Overrides:
authenticationStrategyin classorg.apache.shiro.spring.config.AbstractShiroConfiguration
-
authenticator
- Overrides:
authenticatorin classorg.apache.shiro.spring.config.AbstractShiroConfiguration
-
authorizer
- Overrides:
authorizerin classorg.apache.shiro.spring.config.AbstractShiroConfiguration
-
subjectDAO
- Overrides:
subjectDAOin classorg.apache.shiro.spring.config.AbstractShiroConfiguration
-
sessionStorageEvaluator
@Bean @ConditionalOnMissingBean protected org.apache.shiro.mgt.SessionStorageEvaluator sessionStorageEvaluator()- Overrides:
sessionStorageEvaluatorin classorg.apache.shiro.spring.web.config.AbstractShiroWebConfiguration
-
subjectFactory
- Overrides:
subjectFactoryin classorg.apache.shiro.spring.web.config.AbstractShiroWebConfiguration
-
sessionFactory
@Bean @ConditionalOnMissingBean protected org.apache.shiro.session.mgt.SessionFactory sessionFactory()- Overrides:
sessionFactoryin classorg.apache.shiro.spring.config.AbstractShiroConfiguration
-
sessionDAO
- Overrides:
sessionDAOin classorg.apache.shiro.spring.config.AbstractShiroConfiguration
-
sessionManager
@Bean @ConditionalOnMissingBean protected org.apache.shiro.session.mgt.SessionManager sessionManager()- Overrides:
sessionManagerin classorg.apache.shiro.spring.web.config.AbstractShiroWebConfiguration
-
securityManager
@Bean @ConditionalOnMissingBean protected org.apache.shiro.mgt.SessionsSecurityManager securityManager(List<org.apache.shiro.realm.Realm> realms) - Overrides:
securityManagerin classorg.apache.shiro.spring.config.AbstractShiroConfiguration
-
sessionCookieTemplate
@Bean @ConditionalOnMissingBean(name="sessionCookieTemplate") protected org.apache.shiro.web.servlet.Cookie sessionCookieTemplate()- Overrides:
sessionCookieTemplatein classorg.apache.shiro.spring.web.config.AbstractShiroWebConfiguration
-
rememberMeManager
@Bean @ConditionalOnMissingBean protected org.apache.shiro.mgt.RememberMeManager rememberMeManager()- Overrides:
rememberMeManagerin classorg.apache.shiro.spring.web.config.AbstractShiroWebConfiguration
-
rememberMeCookieTemplate
@Bean @ConditionalOnMissingBean(name="rememberMeCookieTemplate") protected org.apache.shiro.web.servlet.Cookie rememberMeCookieTemplate()- Overrides:
rememberMeCookieTemplatein classorg.apache.shiro.spring.web.config.AbstractShiroWebConfiguration
-
shiroFilterChainDefinition
@Bean @ConditionalOnMissingBean protected org.apache.shiro.spring.web.config.ShiroFilterChainDefinition shiroFilterChainDefinition()- Overrides:
shiroFilterChainDefinitionin classorg.apache.shiro.spring.web.config.AbstractShiroWebConfiguration
-
shiroUrlPathHelper
@Bean @ConditionalOnMissingBean protected org.apache.shiro.spring.web.ShiroUrlPathHelper shiroUrlPathHelper()- Overrides:
shiroUrlPathHelperin classorg.apache.shiro.spring.web.config.AbstractShiroWebConfiguration
-