org.pentaho.platform.plugin.services.security.userrole.ldap
Class NoOpLdapAuthoritiesPopulator
java.lang.Object
org.pentaho.platform.plugin.services.security.userrole.ldap.NoOpLdapAuthoritiesPopulator
- All Implemented Interfaces:
- org.springframework.security.ldap.LdapAuthoritiesPopulator
public class NoOpLdapAuthoritiesPopulator
- extends Object
- implements org.springframework.security.ldap.LdapAuthoritiesPopulator
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
.
- Author:
- mlowery
Method Summary |
org.springframework.security.GrantedAuthority[] |
getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userDetails,
String username)
|
NoOpLdapAuthoritiesPopulator
public NoOpLdapAuthoritiesPopulator()
getGrantedAuthorities
public org.springframework.security.GrantedAuthority[] getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userDetails,
String username)
- Specified by:
getGrantedAuthorities
in interface org.springframework.security.ldap.LdapAuthoritiesPopulator