public class NoOpLdapAuthoritiesPopulator extends Object implements org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator
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 and Description |
---|
NoOpLdapAuthoritiesPopulator() |
Modifier and Type | Method and Description |
---|---|
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userDetails,
String username) |
public Collection<? extends org.springframework.security.core.GrantedAuthority> getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userDetails, String username)
getGrantedAuthorities
in interface org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator
Copyright © 2019 Hitachi Vantara. All rights reserved.