Class UserDetailsServiceLdapUserDetailsMapper

java.lang.Object
io.jmix.ldap.userdetails.UserDetailsServiceLdapUserDetailsMapper
All Implemented Interfaces:
org.springframework.security.ldap.userdetails.UserDetailsContextMapper

public class UserDetailsServiceLdapUserDetailsMapper extends Object implements org.springframework.security.ldap.userdetails.UserDetailsContextMapper
Maps LDAP user to user details obtained from UserDetailsService.
  • Field Details

    • userDetailsService

      protected org.springframework.security.core.userdetails.UserDetailsService userDetailsService
    • synchronizationStrategy

      protected LdapUserDetailsSynchronizationStrategy synchronizationStrategy
    • ldapProperties

      protected LdapProperties ldapProperties
  • Constructor Details

    • UserDetailsServiceLdapUserDetailsMapper

      public UserDetailsServiceLdapUserDetailsMapper()
  • Method Details

    • setUserDetailsService

      @Autowired public void setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
    • setSynchronizationStrategy

      @Autowired(required=false) public void setSynchronizationStrategy(LdapUserDetailsSynchronizationStrategy synchronizationStrategy)
    • setLdapProperties

      @Autowired public void setLdapProperties(LdapProperties ldapProperties)
    • mapUserFromContext

      public org.springframework.security.core.userdetails.UserDetails mapUserFromContext(org.springframework.ldap.core.DirContextOperations ctx, String username, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
      Specified by:
      mapUserFromContext in interface org.springframework.security.ldap.userdetails.UserDetailsContextMapper
    • mapUserToContext

      public void mapUserToContext(org.springframework.security.core.userdetails.UserDetails user, org.springframework.ldap.core.DirContextAdapter ctx)
      Specified by:
      mapUserToContext in interface org.springframework.security.ldap.userdetails.UserDetailsContextMapper