All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apereo.cas.api.AuthenticationRiskMitigator Maven / Gradle / Ivy

There is a newer version: 7.2.0-RC4
Show newest version
package org.apereo.cas.api;

import org.apereo.cas.authentication.Authentication;
import org.apereo.cas.services.RegisteredService;

import jakarta.servlet.http.HttpServletRequest;

/**
 * This is {@link AuthenticationRiskMitigator}.
 *
 * @author Misagh Moayyed
 * @since 5.1.0
 */
public interface AuthenticationRiskMitigator {

    /**
     * Gets contingency plans.
     *
     * @return the contingency plans
     */
    AuthenticationRiskContingencyPlan getContingencyPlan();

    /**
     * Mitigate.
     *
     * @param authentication the authentication
     * @param service        the service
     * @param score          the score
     * @param request        the request
     * @return the responses
     * @throws Throwable the throwable
     */
    AuthenticationRiskContingencyResponse mitigate(Authentication authentication,
                                                   RegisteredService service,
                                                   AuthenticationRiskScore score,
                                                   HttpServletRequest request) throws Throwable;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy