@Configuration @EnableConfigurationProperties(value=ShiroProperties.class) public class ShiroConfig extends Object
| Constructor and Description |
|---|
ShiroConfig() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.shiro.authc.Authenticator |
authenticator(LoginRedisService loginRedisService) |
org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor |
authorizationAttributeSourceAdvisor(org.apache.shiro.mgt.SecurityManager securityManager) |
org.apache.shiro.authc.credential.CredentialsMatcher |
credentialsMatcher() |
org.springframework.boot.web.servlet.FilterRegistrationBean |
delegatingFilterProxy()
ShiroFilter配置
|
JwtRealm |
jwtRealm(LoginRedisService loginRedisService)
JWT数据源验证
|
org.apache.shiro.spring.LifecycleBeanPostProcessor |
lifecycleBeanPostProcessor()
Enabling Shiro Annotations
|
org.apache.shiro.mgt.SecurityManager |
securityManager(LoginRedisService loginRedisService)
安全管理器配置
|
org.apache.shiro.mgt.SessionStorageEvaluator |
sessionStorageEvaluator() |
org.apache.shiro.spring.web.ShiroFilterFactoryBean |
shiroFilterFactoryBean(org.apache.shiro.mgt.SecurityManager securityManager,
LoginService loginService,
LoginRedisService loginRedisService,
SpringBootPlusFilterProperties filterProperties,
ShiroProperties shiroProperties,
JwtProperties jwtProperties)
ShiroFilterFactoryBean配置
|
org.apache.shiro.mgt.DefaultSubjectDAO |
subjectDAO() |
@Bean public org.apache.shiro.authc.credential.CredentialsMatcher credentialsMatcher()
@Bean public JwtRealm jwtRealm(LoginRedisService loginRedisService)
@Bean public org.apache.shiro.mgt.SessionStorageEvaluator sessionStorageEvaluator()
@Bean public org.apache.shiro.mgt.DefaultSubjectDAO subjectDAO()
@Bean public org.apache.shiro.mgt.SecurityManager securityManager(LoginRedisService loginRedisService)
@Bean(value="shiroFilter")
public org.apache.shiro.spring.web.ShiroFilterFactoryBean shiroFilterFactoryBean(org.apache.shiro.mgt.SecurityManager securityManager,
LoginService loginService,
LoginRedisService loginRedisService,
SpringBootPlusFilterProperties filterProperties,
ShiroProperties shiroProperties,
JwtProperties jwtProperties)
securityManager - loginRedisService - shiroProperties - jwtProperties - @Bean public org.springframework.boot.web.servlet.FilterRegistrationBean delegatingFilterProxy()
@Bean public org.apache.shiro.authc.Authenticator authenticator(LoginRedisService loginRedisService)
@Bean public org.apache.shiro.spring.LifecycleBeanPostProcessor lifecycleBeanPostProcessor()
@Bean public org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor authorizationAttributeSourceAdvisor(org.apache.shiro.mgt.SecurityManager securityManager)
Copyright © 2019. All rights reserved.