Interface DynamicProviderManager
- All Superinterfaces:
org.springframework.security.authentication.AuthenticationManager
- All Known Implementing Classes:
DynamicProviderManagerImpl
public interface DynamicProviderManager
extends org.springframework.security.authentication.AuthenticationManager
An extension to the standard ProviderManager implementation
of the AuthenticationManager wich allows adding and removing
provider managers at runtime.
This ensures that the provider manager is threadsafe (to some degree). It is still possible to obtain a collection of providers and manipulate it in a non-threadsafe manner by using the getter/setter.
Note: if you have no need for runtime-pluggable behaviour, simply use org.springframework.security.providers.ProviderManager.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProvider
(org.springframework.security.authentication.AuthenticationProvider provider) boolean
removeProvider
(org.springframework.security.authentication.AuthenticationProvider provider) Methods inherited from interface org.springframework.security.authentication.AuthenticationManager
authenticate
-
Method Details
-
addProvider
void addProvider(org.springframework.security.authentication.AuthenticationProvider provider) -
removeProvider
boolean removeProvider(org.springframework.security.authentication.AuthenticationProvider provider)
-