Package org.apereo.cas.authentication
Interface ChainingMultifactorAuthenticationProvider
-
- All Superinterfaces:
MultifactorAuthenticationProvider,org.springframework.core.Ordered,java.io.Serializable
public interface ChainingMultifactorAuthenticationProvider extends MultifactorAuthenticationProvider
- Since:
- 6.1.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_IDENTIFIERThe identifier for the chained provider.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MultifactorAuthenticationProvideraddMultifactorAuthenticationProvider(MultifactorAuthenticationProvider provider)Add multifactor authentication provider multifactor authentication provider.voidaddMultifactorAuthenticationProviders(java.util.Collection<MultifactorAuthenticationProvider> providers)Add multifactor authentication providers.default voidaddMultifactorAuthenticationProviders(MultifactorAuthenticationProvider... providers)Add multifactor authentication providers.default org.apereo.cas.configuration.model.support.mfa.BaseMultifactorAuthenticationProviderProperties.MultifactorAuthenticationProviderFailureModesgetFailureMode()This method will return the failure mode for the provider.default java.lang.StringgetFriendlyName()Gets the friendly-name for this provider.default java.lang.StringgetId()Gets id for this provider.java.util.Collection<MultifactorAuthenticationProvider>getMultifactorAuthenticationProviders()Gets multifactor authentication providers.default intgetOrder()default booleanisAvailable(org.apereo.cas.services.RegisteredService service)Ensure the provider is available.default booleanmatches(java.lang.String identifier)Does 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, getFailureModeEvaluator
-
-
-
-
Field Detail
-
DEFAULT_IDENTIFIER
static final java.lang.String DEFAULT_IDENTIFIER
The identifier for the chained provider.- See Also:
- Constant Field Values
-
-
Method Detail
-
getMultifactorAuthenticationProviders
java.util.Collection<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
void addMultifactorAuthenticationProviders(java.util.Collection<MultifactorAuthenticationProvider> providers)
Add multifactor authentication providers.- Parameters:
providers- the providers
-
addMultifactorAuthenticationProviders
default void addMultifactorAuthenticationProviders(MultifactorAuthenticationProvider... providers)
Add multifactor authentication providers.- Parameters:
providers- the providers
-
isAvailable
default boolean isAvailable(org.apereo.cas.services.RegisteredService service) throws org.apereo.cas.authentication.AuthenticationExceptionDescription 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
default java.lang.String getId()
Description copied from interface:MultifactorAuthenticationProviderGets id for this provider.- Specified by:
getIdin interfaceMultifactorAuthenticationProvider- Returns:
- the id
-
getFriendlyName
default java.lang.String getFriendlyName()
Description copied from interface:MultifactorAuthenticationProviderGets the friendly-name for this provider.- Specified by:
getFriendlyNamein interfaceMultifactorAuthenticationProvider- Returns:
- the name
-
matches
default boolean matches(java.lang.String identifier)
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
-
-