Class NoOpLdapAuthoritiesPopulator

  • All Implemented Interfaces:

    public class NoOpLdapAuthoritiesPopulator
    extends Object
    For use when authorities are stored in the user object (e.g. objectClass=Person) and therefore retrieved by an UserDetailsContextMapper instance. This class helps since LdapUserDetailsService requires a non-null LdapAuthoritiesPopulator instance.

    LdapAuthenticationProvider actually defines a NullLdapAuthoritiesPopulator which does the same thing as this class. Unfortunately, NullLdapAuthoritiesPopulator is not visible outside of LdapAuthenticationProvider.

    • Constructor Detail

      • NoOpLdapAuthoritiesPopulator

        public NoOpLdapAuthoritiesPopulator()
    • Method Detail

      • getGrantedAuthorities

        public Collection<? extends> getGrantedAuthorities​(org.springframework.ldap.core.DirContextOperations userDetails,
                                                                                                              String username)
        Specified by:
        getGrantedAuthorities in interface