Class InetOrgPersonContextMapper
java.lang.Object
org.springframework.security.ldap.userdetails.InetOrgPersonContextMapper
- All Implemented Interfaces:
 UserDetailsContextMapper
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionmapUserFromContext(org.springframework.ldap.core.DirContextOperations ctx, String username, Collection<? extends GrantedAuthority> authorities) Creates a fully populated UserDetails object for use by the security framework.voidmapUserToContext(UserDetails user, org.springframework.ldap.core.DirContextAdapter ctx) Reverse of the above operation. 
- 
Constructor Details
- 
InetOrgPersonContextMapper
public InetOrgPersonContextMapper() 
 - 
 - 
Method Details
- 
mapUserFromContext
public UserDetails mapUserFromContext(org.springframework.ldap.core.DirContextOperations ctx, String username, Collection<? extends GrantedAuthority> authorities) Description copied from interface:UserDetailsContextMapperCreates a fully populated UserDetails object for use by the security framework.- Specified by:
 mapUserFromContextin interfaceUserDetailsContextMapper- Parameters:
 ctx- the context object which contains the user information.username- the user's supplied login name.authorities- the authorities to add to theUserDetailsinstance- Returns:
 - the user object.
 
 - 
mapUserToContext
Description copied from interface:UserDetailsContextMapperReverse of the above operation. Populates a context object from the supplied user object. Called when saving a user, for example.- Specified by:
 mapUserToContextin interfaceUserDetailsContextMapper
 
 -