public enum ResType { Role = 0, Dept = 1, Group = 2, Site = 3, Org = 4, Sub=8 }这里定义了一个enum ResType用R...
分类:
其他好文 时间:
2014-07-10 16:07:45
阅读次数:
192
最近在重构,有空学了一个简单的安全框架shiro,资料比较少,在百度和google上能搜到的中文我看过了,剩下的时间有空会研究下官网的文章和查看下源码,简单的分享一些学习过程;1,简单的一些概念上的认知2,使用认证的基本流程3,shiro集成spring完成简单的认证流程,已实现1建一个maven的...
分类:
其他好文 时间:
2014-07-10 12:30:17
阅读次数:
342
The impact crusher as an often used crushing machine in the industries of construction and chemical engineering also plays quite an excellent role in ...
分类:
其他好文 时间:
2014-07-10 12:20:31
阅读次数:
148
1.Apache Shiro 使用手册(一)Shiro架构介绍
2.Apache Shiro 使用手册(二)Shiro 认证
3.Apache Shiro 使用手册(三)Shiro 授权
4.Apache Shiro 使用手册(四)Realm 实现
5.Apache Shiro 使用手册(五)Shiro 配置说明...
分类:
其他好文 时间:
2014-07-08 20:20:20
阅读次数:
180
角色(用户组),用户多对多。
角色实体配置:
private Set users;
@ManyToMany
@JoinTable(name="t_auth_user_role",joinColumns={@JoinColumn(name="role_id")},inverseJoinColumns={@JoinColumn(name="user_id")})//配置一方
public...
分类:
系统相关 时间:
2014-07-08 18:26:30
阅读次数:
218
很多人现在都倾向于使用成型的权限认证框架Shiro,并且shiro的官方文档说它帮你实现了rememberMe。多么美好的诱饵啊!但是我们实际用起来的时候却发现不是我们想的那样的,那么shiro的 rememberMe究竟是怎么用的,为什么rememberMe设置了没作用?本文会针对原理来解释,并给出解决方案...
分类:
其他好文 时间:
2014-07-06 00:13:54
阅读次数:
1052
What is the Median?
The Problem
Median plays an important role in the world of statistics. By definition, it is a value which divides an array into two equal parts. In this problem you are ...
分类:
其他好文 时间:
2014-07-03 17:43:53
阅读次数:
250
shiro最闪亮的四大特征是认证,授权,加密,会话管理。上一篇已经演示了如何使用shiro的授权模块,有了shiro这个利器,可以以统一的编码方式对用户的登入,登出,认证进行管理,相当的优雅。为了提高应用系统的安全性,这里主要关注shiro提供的密码服务模块;1,加密工具类的熟悉首先来个结构图,看看...
分类:
其他好文 时间:
2014-07-01 18:42:52
阅读次数:
289
缘由 “懒”在软件设计中,有着重大的意义。最常见的两种“懒”,便是: 懒得计算 懒得加载 “懒得计算”常见于服务器端: 比如Multiplayer Online Role-PlayingGame,客户端主动计算,游戏服务器平滑过渡,在性能、游戏同步性找一个合适恰当的点。其目的是节约服务器端CPU、内...
分类:
Web程序 时间:
2014-06-30 21:00:52
阅读次数:
263
I have created a new user named watson and granted the related priviledges as following:
SQL> create user watson identified by watson;
SQL> grant resource ,connect,create session to watson;
Ther...
分类:
其他好文 时间:
2014-06-27 09:25:34
阅读次数:
230