WebSphere Application Server は、カスタム・パスワード暗号化の使用をサポートします。
始める前に
インストール済み環境では、任意のパスワード暗号化アルゴリズムを選択して実装できます。
このタスクについて
カスタム・パスワード暗号化を実装するには、以下のステップを実行します。
プロシージャー
- カスタム・パスワード暗号化クラスを作成します。 以下はカスタム・パスワード暗号化クラスの例です。
// CustomPasswordEncryption
// Encryption and decryption functions
public interface CustomPasswordEncryption {
public EncryptedInfo encrypt(byte[] clearText) throws PasswordEncryptException;
public byte[] decrypt(EncryptedInfo cipherTextInfo) throws PasswordEncryptException;
public void initialize(HashMap initParameters);
};
// Encapsulation of cipher text and label
public class EncryptedInfo {
public EncryptedInfo(byte[] bytes, String keyAlias);
public byte[] getEncryptedBytes();
public String getKeyAlias();
};
- カスタム・パスワード暗号化を使用可能にします。
- カスタム・プロパティー com.ibm.wsspi.security.crypto.customPasswordEncryptionClass を、制御が付与されるクラスの名前に設定します。
- 機能を使用可能にします。 カスタム・プロパティー com.ibm.wsspi.security.crypto.customPasswordEncryptionEnabled を
true に設定します。
結果
インストール済み環境でのカスタム・パスワード暗号化が完了しました。