クラス SpringSecurityLdapTemplate
java.lang.ObjectSE
org.springframework.ldap.core.LdapTemplate
org.springframework.security.ldap.SpringSecurityLdapTemplate
- 実装されたすべてのインターフェース:
org.springframework.beans.factory.InitializingBean
,org.springframework.ldap.core.LdapOperations
public class SpringSecurityLdapTemplate
extends org.springframework.ldap.core.LdapTemplate
Spring Security に必要な追加機能を追加する Spring LDAP の LdapTemplate クラスの拡張。
- 導入:
- 2.0
ネストされたクラスのサマリー
クラス org.springframework.ldap.core.LdapTemplate から継承されたネストクラス / インターフェース
org.springframework.ldap.core.LdapTemplate.MappingCollectingNameClassPairCallbackHandler<T extends ObjectSE>, org.springframework.ldap.core.LdapTemplate.NullDirContextProcessor
フィールドサマリー
フィールドコンストラクターのサマリー
コンストラクター方法の概要
修飾子と型メソッド説明boolean
特定のディレクトリエントリの属性値の LDAP 比較操作を実行します。org.springframework.ldap.core.DirContextOperations
retrieveEntry
(StringSE dn, StringSE[] attributesToRetrieve) 指定された DN の属性からオブジェクトを作成します。searchForMultipleAttributeValues
(StringSE base, StringSE filter, ObjectSE[] params, StringSE[] attributeNames) 提供されたフィルターを使用して検索を実行し、検索で一致したすべてのエントリで見つかった各名前付き属性の値を返します。searchForSingleAttributeValues
(StringSE base, StringSE filter, ObjectSE[] params, StringSE attributeName) 提供されたフィルターを使用して検索を実行し、検索に一致したすべてのエントリで見つかった名前付き属性の値の和集合を返します。org.springframework.ldap.core.DirContextOperations
searchForSingleEntry
(StringSE base, StringSE filter, ObjectSE[] params) 単一のディレクトリエントリを返す必要があるという条件で検索を実行し、提供されたマッパーを使用してそのエントリからオブジェクトを作成します。static org.springframework.ldap.core.DirContextOperations
searchForSingleEntryInternal
(DirContextSE ctx, SearchControlsSE searchControls, StringSE base, StringSE filter, ObjectSE[] params) AD 検索でのコードの重複を回避するために抽出された内部メソッド。void
setSearchControls
(SearchControlsSE searchControls) テンプレートによる検索操作に使用される検索コントロールを設定します。クラス org.springframework.ldap.core.LdapTemplate から継承されたメソッド
afterPropertiesSet, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, bind, bind, bind, create, delete, deleteRecursively, executeReadOnly, executeReadWrite, find, find, findAll, findAll, findByDn, findForStream, findOne, getContextSource, getObjectDirectoryMapper, list, list, list, list, list, list, listBindings, listBindings, listBindings, listBindings, listBindings, listBindings, listBindings, listBindings, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookupContext, lookupContext, modifyAttributes, modifyAttributes, modifyAttributes, rebind, rebind, rebind, rename, rename, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, searchForContext, searchForObject, searchForObject, searchForObject, searchForObject, searchForObject, searchForStream, searchForStream, setContextSource, setDefaultCountLimit, setDefaultSearchScope, setDefaultTimeLimit, setIgnoreNameNotFoundException, setIgnorePartialResultException, setIgnoreSizeLimitExceededException, setObjectDirectoryMapper, unbind, unbind, unbind, unbind, update
フィールドの詳細
NO_ATTRS
DN_KEY
Map <String、String[]> によってレコードが定義されているすべての検索結果には、少なくともこのキー(レコード自体の DN)が含まれています。- 関連事項:
コンストラクターの詳細
SpringSecurityLdapTemplate
public SpringSecurityLdapTemplate(org.springframework.ldap.core.ContextSource contextSource)
メソッドの詳細
compare
特定のディレクトリエントリの属性値の LDAP 比較操作を実行します。- パラメーター:
dn
- 属性が使用されるエントリattributeName
- 比較したい値の属性value
- ディレクトリ値に対してチェックされる値- 戻り値:
- 指定された値がディレクトリ内の値と一致する場合は true
retrieveEntry
public org.springframework.ldap.core.DirContextOperations retrieveEntry(StringSE dn, StringSE[] attributesToRetrieve) 指定された DN の属性からオブジェクトを作成します。- パラメーター:
dn
- 読み込まれるディレクトリエントリattributesToRetrieve
- ディレクトリエントリから取得される名前付き属性。- 戻り値:
- マッパーによって作成されたオブジェクト
searchForSingleAttributeValues
public SetSE<StringSE> searchForSingleAttributeValues(StringSE base, StringSE filter, ObjectSE[] params, StringSE attributeName) 提供されたフィルターを使用して検索を実行し、検索に一致したすべてのエントリで見つかった名前付き属性の値の和集合を返します。1 つのディレクトリエントリには、属性の値が複数ある場合があることに注意してください。ロール検索および類似のシナリオを対象としています。- パラメーター:
base
- 検索する DNfilter
- 使用する検索フィルターparams
- 検索フィルターで置換するパラメーターattributeName
- 値を取得する属性。- 戻り値:
- 一致するすべてのエントリで見つかった値の和集合としての属性の文字列値のセット。
searchForMultipleAttributeValues
public SetSE<MapSE<StringSE,ListSE<StringSE>>> searchForMultipleAttributeValues(StringSE base, StringSE filter, ObjectSE[] params, StringSE[] attributeNames) 提供されたフィルターを使用して検索を実行し、検索で一致したすべてのエントリで見つかった各名前付き属性の値を返します。1 つのディレクトリエントリには、属性の値が複数ある場合があることに注意してください。ロール検索および類似のシナリオを対象としています。- パラメーター:
base
- 検索する DNfilter
- 使用する検索フィルターparams
- 検索フィルターで置換するパラメーターattributeNames
- 取得する属性の値。- 戻り値:
- 一致するすべてのエントリで見つかった各属性の文字列値のセット。属性名は、値の各セットのキーです。さらに、各マップには、キーとして事前定義されたキー
DN_KEY
を持つ文字列として DN が含まれています。
searchForSingleEntry
public org.springframework.ldap.core.DirContextOperations searchForSingleEntry(StringSE base, StringSE filter, ObjectSE[] params) 単一のディレクトリエントリを返す必要があるという条件で検索を実行し、提供されたマッパーを使用してそのエントリからオブジェクトを作成します。Active Directory との互換性のために、スローされた場合は PartialResultException を無視します(
LdapTemplate.setIgnorePartialResultException(boolean)
を参照)。- パラメーター:
base
- コンテキストソースによって提供されるベースコンテキストを基準とした検索ベース。filter
- LDAP 検索フィルターparams
- 検索で置換されるパラメーター。- 戻り値:
- 一致するエントリから作成された DirContextOperations インスタンス。
- 例外:
org.springframework.dao.IncorrectResultSizeDataAccessException
- 結果が見つからない場合、または検索で複数の結果が返された場合。
searchForSingleEntryInternal
public static org.springframework.ldap.core.DirContextOperations searchForSingleEntryInternal(DirContextSE ctx, SearchControlsSE searchControls, StringSE base, StringSE filter, ObjectSE[] params) throws NamingExceptionSE AD 検索でのコードの重複を回避するために抽出された内部メソッド。setSearchControls
テンプレートによる検索操作に使用される検索コントロールを設定します。- パラメーター:
searchControls
- テンプレートにキャッシュされる SearchControls インスタンス。