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.AuthenticationManager
authenticate
in class org.springframework.security.authentication.ProviderManager
org.springframework.security.core.AuthenticationException
public void addProvider(org.springframework.security.authentication.AuthenticationProvider provider)
addProvider
in interface DynamicProviderManager
public boolean removeProvider(org.springframework.security.authentication.AuthenticationProvider provider)
removeProvider
in interface DynamicProviderManager
Copyright © 2021 Atlassian. All rights reserved.