Package org.apereo.cas.authentication
Class DefaultMultifactorAuthenticationContextValidator
- java.lang.Object
-
- org.apereo.cas.authentication.DefaultMultifactorAuthenticationContextValidator
-
- All Implemented Interfaces:
org.apereo.cas.authentication.MultifactorAuthenticationContextValidator
public class DefaultMultifactorAuthenticationContextValidator extends java.lang.Object implements org.apereo.cas.authentication.MultifactorAuthenticationContextValidatorTheDefaultMultifactorAuthenticationContextValidatoris responsible for evaluating an authentication object to see whether it satisfied a requested authentication context.- Since:
- 4.3
-
-
Constructor Summary
Constructors Constructor Description DefaultMultifactorAuthenticationContextValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apereo.cas.authentication.MultifactorAuthenticationContextValidationResultvalidate(org.apereo.cas.authentication.Authentication authentication, java.lang.String requestedContext, java.util.Optional<org.apereo.cas.services.RegisteredService> service)If the authentication event is established as part trusted/device browser such that MFA was skipped, allow for validation to execute successfully.
-
-
-
Method Detail
-
validate
public org.apereo.cas.authentication.MultifactorAuthenticationContextValidationResult validate(org.apereo.cas.authentication.Authentication authentication, java.lang.String requestedContext, java.util.Optional<org.apereo.cas.services.RegisteredService> service)If the authentication event is established as part trusted/device browser such that MFA was skipped, allow for validation to execute successfully. If authentication event did bypass MFA, allow for validation to execute successfully.- Specified by:
validatein interfaceorg.apereo.cas.authentication.MultifactorAuthenticationContextValidator- Parameters:
authentication- the authenticationrequestedContext- the requested contextservice- the service- Returns:
- true if the context can be successfully validated.
-
-