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) @ConditionalOnProperty(name="shiro.web.enabled", matchIfMissing=true) public class ShiroWebAutoConfiguration extends 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, useNativeSessionManager
-
Fields inherited from class org.apache.shiro.spring.config.AbstractShiroConfiguration
cacheManager, eventBus, permissionResolver, rolePermissionResolver, sessionManagerDeleteInvalidSessions
-
-
Constructor Summary
Constructors Constructor Description ShiroWebAutoConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AuthenticationStrategy
authenticationStrategy()
protected Authenticator
authenticator()
protected Authorizer
authorizer()
protected Cookie
rememberMeCookieTemplate()
protected RememberMeManager
rememberMeManager()
protected SessionsSecurityManager
securityManager(List<Realm> realms)
protected Cookie
sessionCookieTemplate()
protected SessionDAO
sessionDAO()
protected SessionFactory
sessionFactory()
protected SessionManager
sessionManager()
protected SessionStorageEvaluator
sessionStorageEvaluator()
protected ShiroFilterChainDefinition
shiroFilterChainDefinition()
protected ShiroUrlPathHelper
shiroUrlPathHelper()
protected SubjectDAO
subjectDAO()
protected SubjectFactory
subjectFactory()
-
Methods inherited from class org.apache.shiro.spring.web.config.AbstractShiroWebConfiguration
buildCookie, buildCookie, createSecurityManager, nativeSessionManager
-
Methods inherited from class org.apache.shiro.spring.config.AbstractShiroConfiguration
iniRealmFromLocation
-
-
-
-
Constructor Detail
-
ShiroWebAutoConfiguration
public ShiroWebAutoConfiguration()
-
-
Method Detail
-
authenticationStrategy
@Bean @ConditionalOnMissingBean protected AuthenticationStrategy authenticationStrategy()
- Overrides:
authenticationStrategy
in classAbstractShiroConfiguration
-
authenticator
@Bean @ConditionalOnMissingBean protected Authenticator authenticator()
- Overrides:
authenticator
in classAbstractShiroConfiguration
-
authorizer
@Bean @ConditionalOnMissingBean protected Authorizer authorizer()
- Overrides:
authorizer
in classAbstractShiroConfiguration
-
subjectDAO
@Bean @ConditionalOnMissingBean protected SubjectDAO subjectDAO()
- Overrides:
subjectDAO
in classAbstractShiroConfiguration
-
sessionStorageEvaluator
@Bean @ConditionalOnMissingBean protected SessionStorageEvaluator sessionStorageEvaluator()
- Overrides:
sessionStorageEvaluator
in classAbstractShiroWebConfiguration
-
subjectFactory
@Bean @ConditionalOnMissingBean protected SubjectFactory subjectFactory()
- Overrides:
subjectFactory
in classAbstractShiroWebConfiguration
-
sessionFactory
@Bean @ConditionalOnMissingBean protected SessionFactory sessionFactory()
- Overrides:
sessionFactory
in classAbstractShiroConfiguration
-
sessionDAO
@Bean @ConditionalOnMissingBean protected SessionDAO sessionDAO()
- Overrides:
sessionDAO
in classAbstractShiroConfiguration
-
sessionManager
@Bean @ConditionalOnMissingBean protected SessionManager sessionManager()
- Overrides:
sessionManager
in classAbstractShiroWebConfiguration
-
securityManager
@Bean @ConditionalOnMissingBean protected SessionsSecurityManager securityManager(List<Realm> realms)
- Overrides:
securityManager
in classAbstractShiroConfiguration
-
sessionCookieTemplate
@Bean @ConditionalOnMissingBean(name="sessionCookieTemplate") protected Cookie sessionCookieTemplate()
- Overrides:
sessionCookieTemplate
in classAbstractShiroWebConfiguration
-
rememberMeManager
@Bean @ConditionalOnMissingBean protected RememberMeManager rememberMeManager()
- Overrides:
rememberMeManager
in classAbstractShiroWebConfiguration
-
rememberMeCookieTemplate
@Bean @ConditionalOnMissingBean(name="rememberMeCookieTemplate") protected Cookie rememberMeCookieTemplate()
- Overrides:
rememberMeCookieTemplate
in classAbstractShiroWebConfiguration
-
shiroFilterChainDefinition
@Bean @ConditionalOnMissingBean protected ShiroFilterChainDefinition shiroFilterChainDefinition()
- Overrides:
shiroFilterChainDefinition
in classAbstractShiroWebConfiguration
-
shiroUrlPathHelper
@Bean @ConditionalOnMissingBean protected ShiroUrlPathHelper shiroUrlPathHelper()
- Overrides:
shiroUrlPathHelper
in classAbstractShiroWebConfiguration
-
-