Class NoOpLdapAuthoritiesPopulator
- java.lang.Object
-
- org.pentaho.platform.plugin.services.security.userrole.ldap.NoOpLdapAuthoritiesPopulator
-
- All Implemented Interfaces:
org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator
public class NoOpLdapAuthoritiesPopulator extends Object implements org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator
For use when authorities are stored in the user object (e.g.objectClass=Person
) and therefore retrieved by anUserDetailsContextMapper
instance. This class helps sinceLdapUserDetailsService
requires a non-nullLdapAuthoritiesPopulator
instance.LdapAuthenticationProvider
actually defines aNullLdapAuthoritiesPopulator
which does the same thing as this class. Unfortunately,NullLdapAuthoritiesPopulator
is not visible outside ofLdapAuthenticationProvider
.- Author:
- mlowery
-
-
Constructor Summary
Constructors Constructor Description NoOpLdapAuthoritiesPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<? extends org.springframework.security.core.GrantedAuthority>
getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userDetails, String username)
-
-
-
Method Detail
-
getGrantedAuthorities
public Collection<? extends org.springframework.security.core.GrantedAuthority> getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userDetails, String username)
- Specified by:
getGrantedAuthorities
in interfaceorg.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator
-
-