org.springframework.security.ldap.userdetails
Class InetOrgPersonContextMapper

java.lang.Object
  extended by org.springframework.security.ldap.userdetails.InetOrgPersonContextMapper
All Implemented Interfaces:
UserDetailsContextMapper

public class InetOrgPersonContextMapper
extends Object
implements UserDetailsContextMapper

Version:
$Id: InetOrgPersonContextMapper.java 3925 2009-10-05 19:28:53Z ltaylor $
Author:
Luke Taylor

Constructor Summary
InetOrgPersonContextMapper()
           
 
Method Summary
 UserDetails mapUserFromContext(org.springframework.ldap.core.DirContextOperations ctx, String username, Collection<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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InetOrgPersonContextMapper

public InetOrgPersonContextMapper()
Method Detail

mapUserFromContext

public UserDetails mapUserFromContext(org.springframework.ldap.core.DirContextOperations ctx,
                                      String username,
                                      Collection<GrantedAuthority> authorities)
Description copied from interface: UserDetailsContextMapper
Creates a fully populated UserDetails object for use by the security framework.

Specified by:
mapUserFromContext in interface UserDetailsContextMapper
Parameters:
ctx - 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.
Returns:
the user object.

mapUserToContext

public void mapUserToContext(UserDetails user,
                             org.springframework.ldap.core.DirContextAdapter ctx)
Description copied from interface: UserDetailsContextMapper
Reverse of the above operation. Populates a context object from the supplied user object. Called when saving a user, for example.

Specified by:
mapUserToContext in interface UserDetailsContextMapper


Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.