JAAS参考资料中流行的文章是扩展JAAS实现类实例级授权
但它是基于JDK1.3,与目前的JDK1.4,JDK1.5不兼容,例如其中的配置如下:
The following assumes you are using JDK 1.3 and the files were extracted to
the d:JaasExample Directory. You will save some work by extracting the files
to this directory otherwise you will have to modify the policy and the ResourceSecurity.XML
policy files with the correct path names.
1) Copy the jaas.jar and the jaasmod.jar to your JDK jrelibext directory
(i.e. D:JDK1.3jrelibext).
2) Add the following to th...[ 查看全文 ]