Package org.apereo.cas.authentication
Interface ChainingMultifactorAuthenticationProvider
- All Superinterfaces:
MultifactorAuthenticationProvider,org.springframework.core.Ordered,Serializable
public interface ChainingMultifactorAuthenticationProvider
extends MultifactorAuthenticationProvider
- Since:
- 6.1.0
-
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptionAdd multifactor authentication provider multifactor authentication provider.voidAdd multifactor authentication providers.default voidAdd multifactor authentication providers.default org.apereo.cas.configuration.model.support.mfa.BaseMultifactorAuthenticationProviderProperties.MultifactorAuthenticationProviderFailureModesThis method will return the failure mode for the provider.default StringGets the friendly-name for this provider.default StringgetId()Gets id for this provider.Gets multifactor authentication providers.default intgetOrder()default booleanisAvailable(org.apereo.cas.services.RegisteredService service) Ensure the provider is available.default booleanDoes provider match/support this identifier? The identifier passed may be formed as a regular expression.Methods inherited from interface org.apereo.cas.authentication.MultifactorAuthenticationProvider
getBypassEvaluator, getDeviceManager, getFailureModeEvaluator
-
Field Details
-
DEFAULT_IDENTIFIER
The identifier for the chained provider.- See Also:
-
-
Method Details
-
getMultifactorAuthenticationProviders
List<MultifactorAuthenticationProvider> getMultifactorAuthenticationProviders()Gets multifactor authentication providers.- Returns:
- the multifactor authentication providers
-
addMultifactorAuthenticationProvider
MultifactorAuthenticationProvider addMultifactorAuthenticationProvider(MultifactorAuthenticationProvider provider) Add multifactor authentication provider multifactor authentication provider.- Parameters:
provider- the provider- Returns:
- the multifactor authentication provider
-
addMultifactorAuthenticationProviders
Add multifactor authentication providers.- Parameters:
providers- the providers
-
addMultifactorAuthenticationProviders
Add multifactor authentication providers.- Parameters:
providers- the providers
-
isAvailable
default boolean isAvailable(org.apereo.cas.services.RegisteredService service) throws org.apereo.cas.authentication.AuthenticationException Description copied from interface:MultifactorAuthenticationProviderEnsure the provider is available.- Specified by:
isAvailablein interfaceMultifactorAuthenticationProvider- Parameters:
service- - the service- Returns:
- true /false flag once verification is successful.
- Throws:
org.apereo.cas.authentication.AuthenticationException- the authentication exception
-
getId
Description copied from interface:MultifactorAuthenticationProviderGets id for this provider.- Specified by:
getIdin interfaceMultifactorAuthenticationProvider- Returns:
- the id
-
getFriendlyName
Description copied from interface:MultifactorAuthenticationProviderGets the friendly-name for this provider.- Specified by:
getFriendlyNamein interfaceMultifactorAuthenticationProvider- Returns:
- the name
-
matches
Description copied from interface:MultifactorAuthenticationProviderDoes provider match/support this identifier? The identifier passed may be formed as a regular expression.- Specified by:
matchesin interfaceMultifactorAuthenticationProvider- Parameters:
identifier- the identifier- Returns:
- true/false
-
getFailureMode
default org.apereo.cas.configuration.model.support.mfa.BaseMultifactorAuthenticationProviderProperties.MultifactorAuthenticationProviderFailureModes getFailureMode()Description copied from interface:MultifactorAuthenticationProviderThis method will return the failure mode for the provider.- Specified by:
getFailureModein interfaceMultifactorAuthenticationProvider- Returns:
- the FailureMode
-
getOrder
default int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-