Class LdapAuthenticationProvider

java.lang.Object
com.foreach.across.modules.user.security.AbstractUserInDirectoryAuthenticationProvider
com.foreach.across.modules.ldap.services.LdapAuthenticationProvider
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware, org.springframework.security.authentication.AuthenticationProvider

public class LdapAuthenticationProvider extends AbstractUserInDirectoryAuthenticationProvider
Author:
Marc Vanbrabant
  • Constructor Details

    • LdapAuthenticationProvider

      public LdapAuthenticationProvider()
  • Method Details

    • additionalAuthenticationChecks

      protected void additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) throws org.springframework.security.core.AuthenticationException
      Specified by:
      additionalAuthenticationChecks in class AbstractUserInDirectoryAuthenticationProvider
      Throws:
      org.springframework.security.core.AuthenticationException
    • doAfterPropertiesSet

      protected void doAfterPropertiesSet() throws Exception
      Overrides:
      doAfterPropertiesSet in class AbstractUserInDirectoryAuthenticationProvider
      Throws:
      Exception
    • buildUserDetails

      protected org.springframework.security.core.userdetails.UserDetails buildUserDetails(User user, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) throws org.springframework.security.core.AuthenticationException
      Specified by:
      buildUserDetails in class AbstractUserInDirectoryAuthenticationProvider
      Throws:
      org.springframework.security.core.AuthenticationException
    • setSearchFilter

      public void setSearchFilter(String searchFilter)
    • setLdapContextSource

      public void setLdapContextSource(LdapConnector ldapConnector)