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 customAuthenticationProviderthat is passed in.Methods inherited from interface org.springframework.security.config.annotation.SecurityBuilder
build
-
Method Details
-
authenticationProvider
Add authentication based upon the customAuthenticationProviderthat is passed in. Since theAuthenticationProviderimplementation is unknown, all customizations must be done externally and theProviderManagerBuilderis returned immediately. Note that an Exception is thrown if an error occurs when adding theAuthenticationProvider.- Returns:
- a
ProviderManagerBuilderto allow further authentication to be provided to theProviderManagerBuilder
-