アップグレードツールは、レルムおよびロールマッピング設定、任意のカスタムレルムクラス、および各ドメインのファイルベースのユーザーキーファイルを移動します。XML タグ、security-service によって、レルムとロールマッピング設定が定義されます。このタグは sun-server_1_0.dtd および sun-domain_1_0.dtd で定義されます。Application Server 7 の場合、タグのデータは server.xml にあり、Application Server 8.2 の場合は domain.xml にあります。
アップグレードツールは、カスタムレルム用に定義されたクラスファイルを配置し、これを Application Server 8.2 環境で使用できるようにします。カスタムレルムクラスは、タグ auth-realm のクラス名属性で定義されます。security-service タグでは、default-realm 属性はサーバーの使用しているレルムを指しています。これが、設定済みの auth-realm 名のいずれかを指すようにします。デフォルトのレルムはファイルです。default-realm のクラス名が見つからない場合、アップグレードツールはこれをエラーとしてログします。
セキュリティーレルム実装のパッケージ名は、Application Server 7 では com.iplanet.ias.security.auth.realm でしたが、Application Server 8.2 では com.sun.enterprise.security.auth.realm に名前変更されました。したがって、com.iplanet.* クラスを使用して作成したカスタムレルムは変更する必要があります。
com.sun.enterprise.security.AuthenticationStatus クラスは削除されました。
com.sun.enterprise.security.auth.login.PasswordLoginModule authenticate メソッドの実装は、次のように変更されました。
/**
* Perform authentication decision.
* <P> Note: AuthenticationStatus and AuthenticationStatusImpl
* classes have been removed.
* Method returns silently on success and returns a LoginException
* on failure.
*
* @return void authenticate returns silently on
* successful authentication.
* @throws LoginException on authentication failure.
*
*/
abstract protected void authenticate()
throws LoginException;