Shiro常用的Filter过滤器
核心过滤器:DefaultFilter,配置了的相应路径的相应的拦截器进行处理

常用过滤器
-
authc:org.apache.shiro.web.filter.authc.FormAuthenticationFilter- 需要认证登录才能访问
-
user:org.apache.shiro.web.filter.authc.UserFilter- 用户拦截器,表示必须存在用户
-
anon:org.apache.shiro.web.filter.authc.AnonymousFilter- 匿名拦截器,不需要登录即可访问的资源,匿名用户或游客,一般用于过滤静态资源。
-
roles:org.apache.shiro.web.filter.authz.RolesAuthorizationFilter- 角色授权拦截器,验证用户是或否拥有角色。
- 参数可写多个,表示某些角色才能通过,当有多个参数时必须每个参数都通过才算通过
-
perms:org.apache.shiro.web.filter.authz.PermissionsAuthorizationFilter- 权限授权拦截器,验证用户是否拥有权限
- 参数可写多个,表示需要某些权限才能通过,当有多个参数时必须每个参数都通过才算可以
-
authcBasic:org.apache.shiro.web.filter.authc.BasicHttpAuthenticationFilter- httpBasic 身份验证拦截器。
-
logout:org.apache.shiro.web.filter.authc.LogoutFilter- 退出拦截器,执行后会直接跳转到shiroFilterFactoryBean.setLoginUrl()设置的 url
-
port:org.apache.shiro.web.filter.authz.PortFilter- 端口拦截器, 可通过的端口。
-
ssl:org.apache.shiro.web.filter.authz.SslFilter- ssl拦截器,只有请求协议是https才能通过。


![[qiankun]-多页签缓存](https://img-blog.csdnimg.cn/48dd4bc1aed04385851a296c9b047a6d.png)









![BUUCTF-[ACTF新生赛2020]Splendid_MineCraft](https://img-blog.csdnimg.cn/d7cbfec2fa1a405a81ffb5148a4f93eb.png)





