启用 customPasswordEncryption 提供程序,以便使用命令行实用程序(例如,securityUtility)对敏感字符串加密。还可在 WebSphere® Developer Tools 中将 customPasswordEncryption 提供程序用作编码选项。
开始之前
获取包含 customPasswordEncryption 提供程序的企业系统体系结构 (ESA) 文件。customPasswordEncryption 提供程序实现 com.ibm.wsspi.security.crypto.CustomPasswordEncryption 接口且包含“开发 customPasswordEncryption 提供程序”
中描述的扩展清单文件。如果不具有包含 customPasswordEncryption 提供程序的 ESA 文件,请将 Java™ 归档 (JAR) 文件和一些清单文件与安装指示信息配合使用。
关于此任务
安装 customPasswordEncryption 提供程序以便可在 Liberty 运行时环境和 WebSphere DeveloperTools 中使用此提供程序。您可以在 Liberty 运行时环境中使用 customPasswordEncryption 提供程序加密敏感字符串。在 Liberty 运行时环境中安装 customPasswordEncryption 提供程序后,WebSphereDeveloper Tools 会在“密码”面板中将 customPasswordEncryption 选项作为编码选项添加。
过程
- 使用 installUtility 命令安装 ESA 文件。
如果以不同于 ESA 文件的方式打包 customPasswordEncryption 提供程序,请遵循以下适用于 customPasswordEncryption 提供程序的安装指示信息。
- 验证安装是否已成功。
发出以下命令:
wlp/bin/securityUtility encode --listCustom
期望的输出是来自 customPasswordEncryption 提供程序的信息。以下输出是一个示例:
[{"name":"custom","featurename":"usr:customPasswordEncryption-1.0","description":"MyCompany custom password encryption"}]
- 可选: 要从命令行工具使用 customPasswordEncryption 提供程序,请添加以下参数:--encoding=custom
此参数由以下命令行实用程序接受:
securityUtility
configUtility
bluemixUtility
集合体
结果
customPasswordEncryption 提供程序安装在 Liberty 运行时环境中。您已选择将 customPasswordEncryption 提供程序与命令行实用程序配合使用。
下一步做什么
在
WebSphere Developer Tools 中的“密码”面板上,可以将 customPasswordEncryption 提供程序用作编码选项。