public class PersonContextMapper extends Object implements UserDetailsContextMapper
Constructor and Description |
---|
PersonContextMapper() |
Modifier and Type | Method and Description |
---|---|
UserDetails |
mapUserFromContext(DirContextOperations ctx,
String username,
Collection<? extends GrantedAuthority> authorities)
Creates a fully populated UserDetails object for use by the security framework.
|
void |
mapUserToContext(UserDetails user,
DirContextAdapter ctx)
Reverse of the above operation.
|
public UserDetails mapUserFromContext(DirContextOperations ctx, String username, Collection<? extends GrantedAuthority> authorities)
UserDetailsContextMapper
mapUserFromContext
in interface UserDetailsContextMapper
ctx
- the context object which contains the user information.username
- the user's supplied login name.public void mapUserToContext(UserDetails user, DirContextAdapter ctx)
UserDetailsContextMapper
mapUserToContext
in interface UserDetailsContextMapper