您可以使用 CICS® 安全性来提供各种级别的授权和认证。 如果您不启用安全性,那么所有工作都在 CICS 缺省用户标识下运行。 配置 CICS TS Feature Pack for Dynamic Scripting V2.0 的安全性与配置 CICS Liberty JVM 服务器的安全性类似。
关于此任务
CICS TS Feature Pack for Dynamic Scripting V2.0 使用 Liberty JVM 服务器安全性设置。 要实施安全性,请使用以下过程。 在该功能部件包中提供了某些样本,以便为您提供帮助。
过程
- 遵循 配置 Liberty JVM 服务器的安全性中的步骤。
- 更新 OSGi 捆绑软件中包含 Web 支持的 web.xml 以包含以下代码:
<security-constraint id="SecurityConstraint">
<web-resource-collection id="WebResourceCollection">
<web-resource-name>Protected with cicsAllAuthenticated role</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint id="AuthConstraint">
<role-name>cicsAllAuthenticated</role-name>
</auth-constraint>
</security-constraint>
此代码包含在示例项目
com.ibm.cics.server.examples.php.web 中,但是已注释掉。
结果
已针对 Dynamic Scripting 应用程序配置并实施了安全性。