Class DefaultMultifactorAuthenticationContextValidator

  • All Implemented Interfaces:
    org.apereo.cas.authentication.MultifactorAuthenticationContextValidator

    public class DefaultMultifactorAuthenticationContextValidator
    extends java.lang.Object
    implements org.apereo.cas.authentication.MultifactorAuthenticationContextValidator
    The DefaultMultifactorAuthenticationContextValidator is responsible for evaluating an authentication object to see whether it satisfied a requested authentication context.
    Since:
    4.3
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultMultifactorAuthenticationContextValidator

        public DefaultMultifactorAuthenticationContextValidator()
    • 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:
        validate in interface org.apereo.cas.authentication.MultifactorAuthenticationContextValidator
        Parameters:
        authentication - the authentication
        requestedContext - the requested context
        service - the service
        Returns:
        true if the context can be successfully validated.