Class LdapUserRepository

java.lang.Object
io.jmix.ldap.userdetails.LdapUserRepository
All Implemented Interfaces:
UserRepository, org.springframework.security.core.userdetails.UserDetailsService

public class LdapUserRepository extends Object implements UserRepository
Implementation of UserRepository that searches for users in LDAP.
  • Constructor Details

    • LdapUserRepository

      public LdapUserRepository(JmixLdapUserSearch userSearch)
    • LdapUserRepository

      public LdapUserRepository(JmixLdapUserSearch userSearch, org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator authoritiesPopulator)
  • Method Details

    • loadUserByUsername

      public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
      Specified by:
      loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsService
      Throws:
      org.springframework.security.core.userdetails.UsernameNotFoundException
    • setUserDetailsMapper

      public void setUserDetailsMapper(org.springframework.security.ldap.userdetails.UserDetailsContextMapper userDetailsMapper)
    • getSystemUser

      public org.springframework.security.core.userdetails.UserDetails getSystemUser()
      Description copied from interface: UserRepository
      Returns the built-in 'system' user.
      Specified by:
      getSystemUser in interface UserRepository
    • getAnonymousUser

      public org.springframework.security.core.userdetails.UserDetails getAnonymousUser()
      Description copied from interface: UserRepository
      Returns the built-in 'anonymous' user.
      Specified by:
      getAnonymousUser in interface UserRepository
    • getByUsernameLike

      public List<? extends org.springframework.security.core.userdetails.UserDetails> getByUsernameLike(String substring)
      Description copied from interface: UserRepository
      Returns the list of users whose username contains the given substring.
      Specified by:
      getByUsernameLike in interface UserRepository
    • setUsernameAttribute

      public void setUsernameAttribute(String usernameAttribute)