Class LdaptiveUserDetailsService

  • All Implemented Interfaces:
    org.springframework.security.core.userdetails.UserDetailsService

    public class LdaptiveUserDetailsService
    extends AbstractUserDetailsService
    implements org.springframework.security.core.userdetails.UserDetailsService
    The ldaptive user details service.
    Author:
    Christian Bremer
    • Constructor Detail

      • LdaptiveUserDetailsService

        public LdaptiveUserDetailsService​(org.bremersee.data.ldaptive.LdaptiveOperations ldaptiveOperations,
                                          String userBaseDn,
                                          String userFindOneFilter,
                                          org.ldaptive.SearchScope userFindOneSearchScope,
                                          String userAccountControlAttributeName,
                                          List<String> authorities,
                                          String authorityAttributeName,
                                          boolean authorityDn,
                                          Map<String,​String> authorityMap,
                                          String authorityPrefix)
        Instantiates a new ldaptive user details service.
        Parameters:
        ldaptiveOperations - the ldaptive operations
        userBaseDn - the user base dn
        userFindOneFilter - the user find one filter
        userFindOneSearchScope - the user find one search scope
        userAccountControlAttributeName - the user account control attribute name
        authorities - the authorities
        authorityAttributeName - the authority attribute name
        authorityDn - the authority dn
        authorityMap - the authority map
        authorityPrefix - the authority prefix
    • Method Detail

      • 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