intra-mart(R)
5.0

jp.co.intra_mart.foundation.security.certification
クラス LDAPUserCertification

java.lang.Object
  拡張jp.co.intra_mart.foundation.security.certification.StandardUserCertification
      拡張jp.co.intra_mart.foundation.security.certification.LDAPUserCertification
すべての実装インタフェース:
UserCertification

public class LDAPUserCertification
extends StandardUserCertification

ユーザログインLDAP認証クラス。

一般ユーザのLDAPログイン認証を行うためのクラス

初期化パラメータは以下のものを必要とします。
ログイングループごとに3つのパラメータが必要です。

パラメータ名説明
ログイングループID.provider-urlプロバイダURLを設定します。(Ex : ldap://localhost:389/)
ログイングループID.dn 識別情報を設定します。(Ex : uid=?,ou=People, o=ldaps.intra-mart.jp)
ログイングループID.context-factory コンテキストファクトリを設定します。(Ex : com.sun.jndi.ldap.LdapCtxFactory)

ログイングループID.dn に設定する'?'の部分をユーザIDに置換して、認証を行います。
このdnの記述方法は、LDAPサーバによって異なります。

導入されたバージョン:
5.0
バージョン:
1.0

コンストラクタの概要
LDAPUserCertification()
           
 
メソッドの概要
 int certification(LoginInfo loginInfo, Account user, HttpServletRequest request, HttpServletResponse response)
          ユーザを認証する。
 void init(Map params)
          ユーザログイン認証の初期化を行います。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

LDAPUserCertification

public LDAPUserCertification()
メソッドの詳細

certification

public int certification(LoginInfo loginInfo,
                         Account user,
                         HttpServletRequest request,
                         HttpServletResponse response)
ユーザを認証する。

定義:
インタフェース UserCertification 内の certification
オーバーライド:
クラス StandardUserCertification 内の certification
パラメータ:
loginInfo - ログイン情報
user - ユーザ情報
request - サーブレットリクエスト
response - サーブレットレスポンス
戻り値:
認証結果
認証成功 SecurityConstraint.CR_OK
認証失敗 SecurityConstraint.CR_NG
認証処理エラー SecurityConstraint.CR_ERROR
導入されたバージョン:
5.0

init

public void init(Map params)
ユーザログイン認証の初期化を行います。

ユーザログイン認証のインスタンス生成時に一度だけ呼び出されます。

定義:
インタフェース UserCertification 内の init
オーバーライド:
クラス StandardUserCertification 内の init
パラメータ:
params - 初期化パラメータのマップ

intra-mart(R)
5.0

Copyright © 2000-2005 NTT DATA INTRAMART CO.,LTD. All Rights Reserved.