Interface MultifactorAuthenticationContextValidator

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface MultifactorAuthenticationContextValidator
    This is MultifactorAuthenticationContextValidator, which is responsible for evaluating an authentication object to see whether it satisfied a requested authentication context.
    Since:
    5.1.0
    • Method Detail

      • validate

        MultifactorAuthenticationContextValidationResult validate​(org.apereo.cas.authentication.Authentication authentication,
                                                                  java.lang.String requestedContext,
                                                                  java.util.Optional<org.apereo.cas.services.RegisteredService> service)
        Validate the authentication context.
        Parameters:
        authentication - the authentication
        requestedContext - the requested context
        service - the service
        Returns:
        the result indicates whether context is satisfied, and if so, by which provider.