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 aProviderManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description B
authenticationProvider(AuthenticationProvider authenticationProvider)
Add authentication based upon the customAuthenticationProvider
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 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
-
-