Class DefaultLdapAuthenticationProvider

java.lang.Object
org.springframework.security.ldap.authentication.AbstractLdapAuthenticationProvider
org.springframework.security.ldap.authentication.LdapAuthenticationProvider
org.pentaho.platform.plugin.services.security.userrole.ldap.DefaultLdapAuthenticationProvider
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.MessageSourceAware, org.springframework.security.authentication.AuthenticationProvider

public class DefaultLdapAuthenticationProvider extends org.springframework.security.ldap.authentication.LdapAuthenticationProvider
  • Field Summary

    Fields inherited from class org.springframework.security.ldap.authentication.AbstractLdapAuthenticationProvider

    logger, messages, userDetailsContextMapper
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultLdapAuthenticationProvider(org.springframework.security.ldap.authentication.LdapAuthenticator authenticator, org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper roleMapper)
     
    DefaultLdapAuthenticationProvider(org.springframework.security.ldap.authentication.LdapAuthenticator authenticator, org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator authoritiesPopulator, org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper roleMapper)
     
    DefaultLdapAuthenticationProvider(org.springframework.security.ldap.authentication.LdapAuthenticator authenticator, org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator authoritiesPopulator, org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper roleMapper, String authenticatedRole)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.core.Authentication
    authenticate(org.springframework.security.core.Authentication authentication)
     
    protected Collection<? extends org.springframework.security.core.GrantedAuthority>
    loadUserAuthorities(org.springframework.ldap.core.DirContextOperations userData, String username, String password)
    We need to iterate through the authorities and map them to pentaho security equivalent

    Methods inherited from class org.springframework.security.ldap.authentication.LdapAuthenticationProvider

    doAuthentication, getAuthoritiesPopulator, setHideUserNotFoundExceptions

    Methods inherited from class org.springframework.security.ldap.authentication.AbstractLdapAuthenticationProvider

    createSuccessfulAuthentication, getUserDetailsContextMapper, setAuthoritiesMapper, setMessageSource, setUseAuthenticationRequestCredentials, setUserDetailsContextMapper, supports

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultLdapAuthenticationProvider

      public DefaultLdapAuthenticationProvider(org.springframework.security.ldap.authentication.LdapAuthenticator authenticator, org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper roleMapper)
    • DefaultLdapAuthenticationProvider

      public DefaultLdapAuthenticationProvider(org.springframework.security.ldap.authentication.LdapAuthenticator authenticator, org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator authoritiesPopulator, org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper roleMapper)
    • DefaultLdapAuthenticationProvider

      public DefaultLdapAuthenticationProvider(org.springframework.security.ldap.authentication.LdapAuthenticator authenticator, org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator authoritiesPopulator, org.pentaho.platform.api.engine.security.IAuthenticationRoleMapper roleMapper, String authenticatedRole)
  • Method Details

    • loadUserAuthorities

      protected Collection<? extends org.springframework.security.core.GrantedAuthority> loadUserAuthorities(org.springframework.ldap.core.DirContextOperations userData, String username, String password)
      We need to iterate through the authorities and map them to pentaho security equivalent
      Overrides:
      loadUserAuthorities in class org.springframework.security.ldap.authentication.LdapAuthenticationProvider
    • authenticate

      public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
      Specified by:
      authenticate in interface org.springframework.security.authentication.AuthenticationProvider
      Overrides:
      authenticate in class org.springframework.security.ldap.authentication.AbstractLdapAuthenticationProvider
      Throws:
      org.springframework.security.core.AuthenticationException