Oracle神谕

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  284 随笔 :: 9 文章 :: 106 评论 :: 0 Trackbacks

security安全包应该是identity身份模块中很重要的组成部分,其中主要包含以下类:
一、AuthenticatedUser认证用户类:其中很简单,就是gettter和setter 方法,设置和获取authenticatedUser。
   其中的authenticatedUser是一个ThreadLocal。
二、IdentityLoginModule身份登陆模块类:
  实现LoginModule接口。这个类和javax.security.auth.*等包结合非常紧密。
三、IdentityPolicy身份政策类:扩展Policy类。
四、IdentityService身份服务接口:验证用户和获取User
五、Password和Usename JavaBean
------------------------------------------------------------

补充知识:
1.ThreadLocal
This class provides thread-local variables. These variables differ from their normal counterparts in that each thread that accesses one (via its get or set method) has its own, independently initialized copy of the variable. ThreadLocal instances are typically private static fields in classes that wish to associate state with a thread (e.g., a user ID or Transaction ID).
这支持支持thread-local 变量。这些变量不同于它们常用的对应物,在那每一个线程获得一个(依靠get或set方法)拥有它自己的,独立地初始化复制这个变量。ThreadLocal实例是典型地私有静态字段,它希望联系状态使用线程(例如;一个用户ID或事务ID)。

posted on 2005-09-18 21:26 java世界畅谈 阅读(662) 评论(0)  编辑  收藏 所属分类: JBPM

只有注册用户登录后才能发表评论。


网站导航: