public class DynamicProviderManagerImpl extends org.springframework.security.authentication.ProviderManager implements DynamicProviderManager
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.
| Constructor and Description |
|---|
DynamicProviderManagerImpl() |
DynamicProviderManagerImpl(List<org.springframework.security.authentication.AuthenticationProvider> providers) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProvider(org.springframework.security.authentication.AuthenticationProvider provider) |
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication) |
boolean |
removeProvider(org.springframework.security.authentication.AuthenticationProvider provider) |
public DynamicProviderManagerImpl()
public DynamicProviderManagerImpl(List<org.springframework.security.authentication.AuthenticationProvider> providers)
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
throws org.springframework.security.core.AuthenticationException
authenticate in interface org.springframework.security.authentication.AuthenticationManagerauthenticate in class org.springframework.security.authentication.ProviderManagerorg.springframework.security.core.AuthenticationExceptionpublic void addProvider(org.springframework.security.authentication.AuthenticationProvider provider)
addProvider in interface DynamicProviderManagerpublic boolean removeProvider(org.springframework.security.authentication.AuthenticationProvider provider)
removeProvider in interface DynamicProviderManagerCopyright © 2021 Atlassian. All rights reserved.