Cosminexus V9 アプリケーションサーバ 機能解説 セキュリティ管理機能編

[目次][用語][索引][前へ][次へ]

15.25 WebPasswordHandlerクラス

説明
Webブラウザを介して,ユーザからユーザIDおよびパスワードを取得するJAAS Callback Handlerクラスの実装です。
ユーザIDおよびパスワードは,それぞれHTTPリクエストのcom.cosminexus.admin.auth.nameパラメタおよびcom.cosminexus.admin.auth.passwordパラメタに設定してください。
WebPasswordHandlerクラスのパッケージ名は,com.cosminexus.admin.auth.callbackです。

形式
class WebPasswordHandler 
{
  public WebPasswordHandler(HttpServletRequest request,
                            HttpServletResponse response,
                            AttributeEntry [] aliases,
                            String url,
                            boolean urlforward)
    throws FormatError, ParameterError;
  public WebPasswordHandler(HttpServletRequest request,
                            HttpServletResponse response,
                            String aliasesFile,
                            String url,
                            boolean urlforward)
    throws IOException, SecurityException, FormatError,
    ParameterError;
 
  public void handle(Callback[] callbacks)
    throws IOException, UnsupportedCallbackException;
}

コンストラクタ・メソッド一覧
コンストラクタ・メソッド名 機能
WebPasswordHandlerコンストラクタ WebPasswordHandlerクラスのインスタンスを生成します。
handleメソッド 認証情報を取得します。
 
<この節の構成>
WebPasswordHandlerコンストラクタ
handleメソッド