org.pentaho.platform.plugin.services.security.userrole.ldap
Class NoOpLdapAuthoritiesPopulator

java.lang.Object
  extended by 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

Constructor Summary
NoOpLdapAuthoritiesPopulator()
           
 
Method Summary
 org.springframework.security.GrantedAuthority[] getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userDetails, String username)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpLdapAuthoritiesPopulator

public NoOpLdapAuthoritiesPopulator()
Method Detail

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