クラス PersonContextMapper
java.lang.ObjectSE
org.springframework.security.ldap.userdetails.PersonContextMapper
- 実装されているすべてのインターフェース:
UserDetailsContextMapper
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明mapUserFromContext(org.springframework.ldap.core.DirContextOperations ctx, StringSE username, CollectionSE<? extends GrantedAuthority> authorities) セキュリティフレームワークで使用するために完全に読み込まれた UserDetails オブジェクトを作成します。voidmapUserToContext(UserDetails user, org.springframework.ldap.core.DirContextAdapter ctx) 上記の操作の逆。
コンストラクターの詳細
PersonContextMapper
public PersonContextMapper()
メソッドの詳細
mapUserFromContext
public UserDetails mapUserFromContext(org.springframework.ldap.core.DirContextOperations ctx, StringSE username, CollectionSE<? extends GrantedAuthority> authorities) インターフェースからコピーされた説明:UserDetailsContextMapperセキュリティフレームワークで使用するために完全に読み込まれた UserDetails オブジェクトを作成します。- 次で指定:
- インターフェース
UserDetailsContextMapperのmapUserFromContext - パラメーター:
ctx- ユーザー情報を含むコンテキストオブジェクト。username- ユーザーが指定したログイン名。- 戻り値:
- ユーザーオブジェクト。
mapUserToContext
インターフェースからコピーされた説明:UserDetailsContextMapper上記の操作の逆。指定されたユーザーオブジェクトからコンテキストオブジェクトを作成します。たとえば、ユーザーを保存するときに呼び出されます。- 次で指定:
- インターフェース
UserDetailsContextMapperのmapUserToContext