啟用 customPasswordEncryption 提供者以加密機密字串。
開始之前
取得含有 customPasswordEncryption 提供者的「企業系統架構 (ESA)」檔案。如
開發 customPasswordEncryption 提供者中所述,ESA 檔案會實作
com.ibm.wsspi.security.crypto.CustomPasswordEncryption 介面。如果您並無包含 customPasswordEncryption 提供者的 ESA 檔案,請取得 Java™ 保存檔 (JAR) 以及含有安裝指示的一或多個資訊清單檔。如果您想在
WebSphere® Developer Tools 中使用 customPasswordEncryption 提供者,請確定
customPasswordEncryption 提供者已針對開發人員工具啟用 ESA 檔案。
關於這項作業
啟用 customPasswordEncryption 提供者,以使用 customPasswordEncryption 提供者來加密字串。customPasswordEncryption 提供者會將
server.xml 檔中的字串加密。
程序
- 使用 installUtility 指令,來安裝 ESA 檔案。
如果 customPasswordEncryption 提供者的包裝方式有別於 ESA 檔案,請遵循
customPasswordEncryption 提供者的安裝指示。
- 在 server.xml 檔中啟用 customPasswordEncryption 提供者特性。
customPasswordEncryption 提供者的擁有者會提供特性的名稱,如下列範例所示:
<featureManager>
<feature>usr:customPasswordEncryption-1.0</feature>
</featureManager>
- 啟動伺服器,並驗證 messages.log 檔中已記載 CWWKS1850I 訊息。
以下是訊息範例:[8/10/16 7:07:07:007 EDT] 0000001e com.ibm.ws.crypto.util.PasswordCipherUtil I CWWKS1850I:
The custom password encryption service has started. The class name is com.ibm.websphere.crypto.sample.customencryption.CustomEncryptionImpl.