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

org.apereo.cas.api.AuthenticationRiskContingencyPlan 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 AuthenticationRiskContingencyPlan}.
 *
 * @author Misagh Moayyed
 * @since 5.1.0
 */
@FunctionalInterface
public interface AuthenticationRiskContingencyPlan {

    /**
     * Execute authentication risk contingency plan and produce a response.
     *
     * @param authentication the authentication
     * @param service        the service
     * @param score          the score
     * @param request        the request
     * @return the authentication risk contingency response
     * @throws Throwable the throwable
     */
    AuthenticationRiskContingencyResponse execute(Authentication authentication,
                                                  RegisteredService service,
                                                  AuthenticationRiskScore score,
                                                  HttpServletRequest request) throws Throwable;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy