此功能部件支持保护服务器运行时环境和应用程序;它包括基本用户注册表。此功能部件取代 appSecurity-1.0,不包括 servlet-3.0 或对 LDAP 用户注册表的支持。要保护 Web 应用程序,请添加 servlet-3.0 功能部件。要保护 EJB 应用程序,请添加 ejbLite-3.1 功能部件。要使用 LDAP,请添加 ldapRegistry-3.0 功能部件。将 appSecurity-2.0 功能部件添加到服务器时,您需要配置用户注册表,例如基本用户注册表或 LDAP 用户注册表。
要启用 Application Security 2.0 功能部件,请在 server.xml 文件中的 featureManager 元素内添加以下元素声明:
<feature>appSecurity-2.0</feature>
如果正在开发依赖于 Application Security 2.0 功能部件的功能部件,请将以下项包括在新功能部件的功能部件清单文件的 Subsystem-Content 头中:
com.ibm.websphere.appserver.appSecurity-2.0; type="osgi.subsystem.feature"