Jetspeed2学习笔记 (一)
来源:百度文库 编辑:神马文学网 时间:2024/10/01 08:48:05
1、 Jetspeed系统的配置文件在《JetSpeed2 home》\conf\Catalina\localhost下的jetspeed.xml文件中,此文件中定义了JAAS验证的配置及数据库连接模式(包括连接语句)
2、配置一个居于IFrame的应用:
1、 引入jar包:jetspeed-components-2.0.jar
jetspeed-rewriter-2.0.jar
jetspeed-web-content-2.0.jar
portals-bridges-velocity-1.0.jar
portals-gems-2.0.jar
(注:可以使用demo应用的lib)
2、 在portal.xml文件中配置一个portlet:
EchoIframe
lixin IFrame Portlet
Prototype of the IFRAME2 portlet
org.apache.jetspeed.portlet.IFrameGenericPortlet
-1
text/html
VIEW
SRC
http://www.sohu.com
HEIGHT
600
WIDTH
100%
MAX-HEIGHT
800
MAX-WIDTH
100%
SCROLLING
AUTO
en
zh
搜狐网
搜狐网
iframe,frame,frame2,iframe2
3、 配置对应的.psml文件,如下:
3、
jetspeed2的登陆权限验证完全居于JAAS,其配置文件是在jetspeed应用lib库中的jetspeed-security-.jar中的login.conf文件中定义的,如果想替换成自己的验证模式,可以修改此配置文件,如下:
Jetspeed {
org.apache.jetspeed.security.impl.DefaultLoginModule required;
};
请注意,自己加的login.conf配置文件可以放在WEB-INF/classes目录下的任何位置,并且修改WEB-INF/assembly目录下的security-providers.xml文件相应的login.conf文件的新位置。
4、
JAAS的subject主要用来表示一个应用主体对象(用户),此对象有一个或多个用来标识其身份的Principals,如名字(name principal)或者身份证号(SSN principal),principal是用来唯一标识此subject,以区别于其他的subject的。原文如下:
To authorize access to resources, applications first need to authenticate
the source of the request. The JAAS framework defines the term subject
to represent the source of a request. A subject may be any entity, such
as a person or a service. Once the subject is authenticated, a
javax.security.auth.Subject is populated with associated identities, or
Principals. A Subject may have many Principals. For example, a person may
have a name Principal ("John Doe") and a SSN Principal ("123-45-6789"),
which distinguish it from other subjects.
2、配置一个居于IFrame的应用:
1、 引入jar包:jetspeed-components-2.0.jar
jetspeed-rewriter-2.0.jar
jetspeed-web-content-2.0.jar
portals-bridges-velocity-1.0.jar
portals-gems-2.0.jar
(注:可以使用demo应用的lib)
2、 在portal.xml文件中配置一个portlet:
3、 配置对应的.psml文件,如下:
3、
jetspeed2的登陆权限验证完全居于JAAS,其配置文件是在jetspeed应用lib库中的jetspeed-security-
Jetspeed {
org.apache.jetspeed.security.impl.DefaultLoginModule required;
};
请注意,自己加的login.conf配置文件可以放在WEB-INF/classes目录下的任何位置,并且修改WEB-INF/assembly目录下的security-providers.xml文件相应的login.conf文件的新位置。
4、
JAAS的subject主要用来表示一个应用主体对象(用户),此对象有一个或多个用来标识其身份的Principals,如名字(name principal)或者身份证号(SSN principal),principal是用来唯一标识此subject,以区别于其他的subject的。原文如下:
To authorize access to resources, applications first need to authenticate
the source of the request. The JAAS framework defines the term subject
to represent the source of a request. A subject may be any entity, such
as a person or a service. Once the subject is authenticated, a
javax.security.auth.Subject is populated with associated identities, or
Principals. A Subject may have many Principals. For example, a person may
have a name Principal ("John Doe") and a SSN Principal ("123-45-6789"),
which distinguish it from other subjects.
Jetspeed2学习笔记 (一)
Jetspeed2学习笔记(三)
Jetspeed2学习笔记(五)
Jetspeed2学习笔记(六)
Jetspeed2学习笔记(六)
Jetspeed2学习笔记 (六)
WinSock学习笔记(一)
JMS学习笔记(一)
【原创】Liferay Portal学习笔记(一):安装
WinSock学习笔记(一) - 山野村夫 - CSDNBlog
有效管理者的八大工具学习笔记(一)
【管理】有效管理者的八大工具学习笔记(一)
WinSock学习笔记(一) - VC知识库文章
学习笔记(二)
竹笋炒肉: Digester学习笔记(一)
Vista Guidelines学习笔记一:关于菜单
2010-10-26 每日学习笔记一
Java笔记(一)
大学笔记 (一)
WinSock学习笔记(二)
HLA学习笔记(1)
初学PS(学习笔记)
设计模式学习笔记(一)——面向对象设计模式与原则
三、市场成交量与价格的关系_(1)学习笔记一