Interface ProviderManagerBuilder<B extends ProviderManagerBuilder<B>>
- Type Parameters:
B
- the type of theSecurityBuilder
- 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
Modifier and TypeMethodDescriptionauthenticationProvider
(AuthenticationProvider authenticationProvider) Add authentication based upon the customAuthenticationProvider
that is passed in.Methods inherited from interface org.springframework.security.config.annotation.SecurityBuilder
build
-
Method Details
-
authenticationProvider
Add authentication based upon the customAuthenticationProvider
that is passed in. Since theAuthenticationProvider
implementation is unknown, all customizations must be done externally and theProviderManagerBuilder
is returned immediately. Note that an Exception is thrown if an error occurs when adding theAuthenticationProvider
.- Returns:
- a
ProviderManagerBuilder
to allow further authentication to be provided to theProviderManagerBuilder
-