public class NoOpLdapAuthoritiesPopulator extends Object implements org.springframework.security.ldap.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 |
---|---|
org.springframework.security.GrantedAuthority[] |
getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userDetails,
String username) |
public org.springframework.security.GrantedAuthority[] getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userDetails, String username)
getGrantedAuthorities
in interface org.springframework.security.ldap.LdapAuthoritiesPopulator