loginメソッド
説明
J2EEサーバにログインします。
形式
public final boolean login(String username, String password) throws NotFoundServerException,InvalidUserNameException, InvalidPasswordException;
パラメタ
- username:
-
ユーザ名(plain text)を指定します。
- password:
-
パスワード(plain text)を指定します。
例外
- com.hitachi.software.ejb.security.base.authentication.NotFoundServerException:
-
J2EEサーバが見つかりません。
- com.hitachi.software.ejb.security.base.authentication.InvalidUserNameException:
-
指定されたユーザ名が見つかりません。
- com.hitachi.software.ejb.security.base.authentication.InvalidPasswordException:
-
指定したパスワードが不正です。
戻り値
- true:
-
ログインに成功しました。
- false:
-
ログインに失敗しました。