Example usage for org.springframework.security.config.annotation.authentication.configurers.ldap LdapAuthenticationProviderConfigurer LdapAuthenticationProviderConfigurer

List of usage examples for org.springframework.security.config.annotation.authentication.configurers.ldap LdapAuthenticationProviderConfigurer LdapAuthenticationProviderConfigurer

Introduction

In this page you can find the example usage for org.springframework.security.config.annotation.authentication.configurers.ldap LdapAuthenticationProviderConfigurer LdapAuthenticationProviderConfigurer.

Prototype

LdapAuthenticationProviderConfigurer

Source Link

Usage

From source file:org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder.java

/**
 * Add LDAP authentication to the {@link AuthenticationManagerBuilder} and return a
 * {@link LdapAuthenticationProviderConfigurer} to allow customization of the LDAP
 * authentication./*  w w  w .  jav a2s. co m*/
 *
 * <p>
 * This method <b>does NOT</b> ensure that a {@link UserDetailsService} is available
 * for the {@link #getDefaultUserDetailsService()} method.
 *
 * @return a {@link LdapAuthenticationProviderConfigurer} to allow customization of
 * the LDAP authentication
 * @throws Exception if an error occurs when adding the LDAP authentication
 */
public LdapAuthenticationProviderConfigurer<AuthenticationManagerBuilder> ldapAuthentication()
        throws Exception {
    return apply(new LdapAuthenticationProviderConfigurer<>());
}