Package org.apereo.cas.authentication
Interface MultifactorAuthenticationProvider
-
- All Superinterfaces:
org.springframework.core.Ordered,java.io.Serializable
- All Known Subinterfaces:
ChainingMultifactorAuthenticationProvider
public interface MultifactorAuthenticationProvider extends java.io.Serializable, org.springframework.core.OrderedThis isMultifactorAuthenticationProviderthat describes an external authentication entity/provider matched against a registered service. Providers may be given the ability to check authentication provider for availability before actually producing a relevant identifier.- Since:
- 5.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MultifactorAuthenticationProviderBypassEvaluatorgetBypassEvaluator()Returns the configured bypass provider for this MFA provider.org.apereo.cas.configuration.model.support.mfa.BaseMultifactorAuthenticationProviderProperties.MultifactorAuthenticationProviderFailureModesgetFailureMode()This method will return the failure mode for the provider.MultifactorAuthenticationFailureModeEvaluatorgetFailureModeEvaluator()Returns the configured failure mode evaluator for this MFA provider.java.lang.StringgetFriendlyName()Gets the friendly-name for this provider.java.lang.StringgetId()Gets id for this provider.booleanisAvailable(org.apereo.cas.services.RegisteredService service)Ensure the provider is available.booleanmatches(java.lang.String identifier)Does provider match/support this identifier? The identifier passed may be formed as a regular expression.
-
-
-
Method Detail
-
isAvailable
boolean isAvailable(org.apereo.cas.services.RegisteredService service) throws org.apereo.cas.authentication.AuthenticationExceptionEnsure the provider is available.- Parameters:
service- - the service- Returns:
- true /false flag once verification is successful.
- Throws:
org.apereo.cas.authentication.AuthenticationException- the authentication exception
-
getBypassEvaluator
MultifactorAuthenticationProviderBypassEvaluator getBypassEvaluator()
Returns the configured bypass provider for this MFA provider.- Returns:
- - the bypass evaluator
-
getFailureModeEvaluator
MultifactorAuthenticationFailureModeEvaluator getFailureModeEvaluator()
Returns the configured failure mode evaluator for this MFA provider.- Returns:
- the failuremode evaluator
-
getId
java.lang.String getId()
Gets id for this provider.- Returns:
- the id
-
getFriendlyName
java.lang.String getFriendlyName()
Gets the friendly-name for this provider.- Returns:
- the name
-
matches
boolean matches(java.lang.String identifier)
Does provider match/support this identifier? The identifier passed may be formed as a regular expression.- Parameters:
identifier- the identifier- Returns:
- true/false
-
getFailureMode
org.apereo.cas.configuration.model.support.mfa.BaseMultifactorAuthenticationProviderProperties.MultifactorAuthenticationProviderFailureModes getFailureMode()
This method will return the failure mode for the provider.- Returns:
- the FailureMode
-
-