您的位置:首页 > 其它

Shrio入门1:基础理论需求

2016-03-23 16:44 183 查看
目标:
|---了解基于资源的权限管理方式
|---掌握权限数据模型
|---基于URL权限管理(不使用Shiro实现权限管理)
|---Shiro实现用户认证
|---Shiro实现用户授权
|---Shiro与实际的企业web项目整合开发的方法

要学会权限管理的解决方案

原理知识:对权限管理的理解
|---什么是权限管理
|---用户认证
|---用户授权

Shiro基础:
|---Shiro架构
|---Shiro进行用户认证的方法
|---Shiro进行用户授权的方法


此文老猫原创,转载请加本文连接:/article/11906597.html

更多有关老猫的文章:http://blog.csdn.net/nthack5730

[main]
#定义凭证匹配器
credentialsMatcher=org.apache.shiro.authc.credential.HashedCredentialsMatcher

#指定散列算法
credentialsMatcher.hashAlgorithmName=md5

#指定散列次数
credentialsMatcher.hashIterations=1

#将凭证匹配器设置到realm
customRealm=ccn.marer.shiro.realm.CustomRealmMd5
customRealm.credentialsMatcher=$credentialsMatcher
securityManager.realms=$customRealm
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: