public class PersonContextMapper extends java.lang.Object implements UserDetailsContextMapper
| Constructor and Description |
|---|
PersonContextMapper() |
| Modifier and Type | Method and Description |
|---|---|
UserDetails |
mapUserFromContext(org.springframework.ldap.core.DirContextOperations ctx,
java.lang.String username,
GrantedAuthority[] authorities)
Creates a fully populated UserDetails object for use by the security framework.
|
void |
mapUserToContext(UserDetails user,
org.springframework.ldap.core.DirContextAdapter ctx)
Reverse of the above operation.
|
public UserDetails mapUserFromContext(org.springframework.ldap.core.DirContextOperations ctx, java.lang.String username, GrantedAuthority[] authorities)
UserDetailsContextMappermapUserFromContext in interface UserDetailsContextMapperctx - the context object which contains the user information.username - the user's supplied login name.authorities - the list of authorities which the user should be given.public void mapUserToContext(UserDetails user, org.springframework.ldap.core.DirContextAdapter ctx)
UserDetailsContextMappermapUserToContext in interface UserDetailsContextMapper