Class 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

      All Methods Instance Methods Concrete Methods 
      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
    • Constructor Detail

      • 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 Detail

      • 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