@Service public class AuthenticationProviderManagement extends Object
CommunoteAuthenticationProvider
.Constructor and Description |
---|
AuthenticationProviderManagement() |
Modifier and Type | Method and Description |
---|---|
void |
addAuthenticationProvider(CommunoteAuthenticationProvider provider)
Adds a provider to the chain.
|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication)
Iterates over the internal list of authentication providers an tries to authenticate.
|
List<CommunoteAuthenticationProvider> |
getProviders() |
void |
removeCommunoteAuthenticationProvider(CommunoteAuthenticationProvider provider)
Removes a provider from the chain.
|
public void addAuthenticationProvider(CommunoteAuthenticationProvider provider)
provider
- The provider filter to add.public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
authentication
- The authentication.public List<CommunoteAuthenticationProvider> getProviders()
public void removeCommunoteAuthenticationProvider(CommunoteAuthenticationProvider provider)
provider
- The provider to remove.Copyright © 2019 Communote team. All rights reserved.