org.springframework.security.config.annotation.authentication
Interface ProviderManagerBuilder<B extends ProviderManagerBuilder<B>>

Type Parameters:
B - the type of the SecurityBuilder
All Superinterfaces:
SecurityBuilder<AuthenticationManager>
All Known Implementing Classes:
AuthenticationManagerBuilder

public interface ProviderManagerBuilder<B extends ProviderManagerBuilder<B>>
extends SecurityBuilder<AuthenticationManager>

Interface for operating on a SecurityBuilder that creates a ProviderManager


Method Summary
 B authenticationProvider(AuthenticationProvider authenticationProvider)
          Add authentication based upon the custom AuthenticationProvider that is passed in.
 
Methods inherited from interface org.springframework.security.config.annotation.SecurityBuilder
build
 

Method Detail

authenticationProvider

B authenticationProvider(AuthenticationProvider authenticationProvider)
Add authentication based upon the custom AuthenticationProvider that is passed in. Since the AuthenticationProvider implementation is unknown, all customizations must be done externally and the ProviderManagerBuilder is returned immediately.

Returns:
a ProviderManagerBuilder to allow further authentication to be provided to the ProviderManagerBuilder
Throws:
Exception - if an error occurs when adding the AuthenticationProvider