Class LdapAuthenticationProvider

  • All Implemented Interfaces:
    AuthenticationProvider, java.io.Closeable, java.lang.AutoCloseable

    @EachBean(LdapConfiguration.class)
    public class LdapAuthenticationProvider
    extends java.lang.Object
    implements AuthenticationProvider, java.io.Closeable
    Authenticates against an LDAP server using the configuration provided through LdapConfiguration. One provider will be created for each configuration.
    Since:
    1.0
    Author:
    James Kleeh
    • Constructor Detail

      • LdapAuthenticationProvider

        public LdapAuthenticationProvider​(LdapConfiguration configuration,
                                          LdapSearchService ldapSearchService,
                                          ContextBuilder contextBuilder,
                                          ContextAuthenticationMapper contextAuthenticationMapper,
                                          LdapGroupProcessor ldapGroupProcessor)
        Parameters:
        configuration - The configuration to use to authenticate
        ldapSearchService - The search service
        contextBuilder - The context builder
        contextAuthenticationMapper - The authentication mapper
        ldapGroupProcessor - The group processor
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable