public interface UserDetailsContextMapper
DirContextOperations
implementation.
Used by LdapUserDetailsManager
when loading and saving/creating user information, and also by the
LdapAuthenticationProvider
to allow customization of the user data loaded during authentication.Modifier and Type | Method and Description |
---|---|
org.springframework.security.core.userdetails.UserDetails |
mapUserFromContext(DirContextOperations ctx,
String username,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
Creates a fully populated UserDetails object for use by the security framework.
|
void |
mapUserToContext(org.springframework.security.core.userdetails.UserDetails user,
DirContextAdapter ctx)
Reverse of the above operation.
|
org.springframework.security.core.userdetails.UserDetails mapUserFromContext(DirContextOperations ctx, String username, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
ctx
- the context object which contains the user information.username
- the user's supplied login name.authorities
- void mapUserToContext(org.springframework.security.core.userdetails.UserDetails user, DirContextAdapter ctx)