
Apache Shiro学习
dan_zhoudan
研究生阶段
展开
-
Shiro入门 -- 第一个Shiro程序
# 1、什么是ShiroApache Shiro是一个强大且易用的Java安全框架,执行身份验证、授权、密码和会话管理。使用Shiro的易于理解的API,您可以快速、轻松地获得任何应用程序,从最小的移动应用程序到最大的网络和企业应用程序。## 下载:http://shiro.apache.org/# 2、Shiro工作原理Authentication: 身份认证/登录,验证用户是否拥有相应的身份 Authorization: 授权,即授权验证,验证某个已认证的用户是否拥有某个权限。;即判.原创 2020-05-18 20:50:49 · 330 阅读 · 0 评论 -
Shiro入门 -- 集成Spring
1、创建maven-webapp项目,引入依赖<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.targe原创 2020-05-18 21:48:49 · 190 阅读 · 0 评论 -
Shiro入门 -- 多Realm验证以及源码分析
1、通过查看shiro的Quickstart,翻看源码,protected AuthenticationInfo doAuthenticate(AuthenticationToken authenticationToken) throws AuthenticationException { this.assertRealmsConfigured(); Collection<Realm> realms = this.getRealms(); r原创 2020-05-20 10:32:52 · 170 阅读 · 0 评论 -
Shiro入门 -- shiro登录认证之密码比对和源码探究
1、自定义的ShiroRealm,继承AuthenticatingRealm//使用认证功能 AuthenticatingRealmpublic class ShiroRealm extends AuthenticatingRealm { @Override protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken authenticationToken) throws Authentic原创 2020-05-20 09:46:31 · 1070 阅读 · 0 评论 -
Shiro入门 -- 认证过程详解
1、Shiro认证流程原创 2020-05-19 15:41:43 · 479 阅读 · 0 评论