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

org.apereo.cas.consent.ConsentActivationStrategy Maven / Gradle / Ivy

There is a newer version: 7.1.0
Show newest version
package org.apereo.cas.consent;

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

import jakarta.servlet.http.HttpServletRequest;

/**
 * This is {@link ConsentActivationStrategy}.
 *
 * @author Misagh Moayyed
 * @since 6.3.0
 */
@FunctionalInterface
public interface ConsentActivationStrategy {
    /**
     * Bean name.
     */
    String BEAN_NAME = "consentActivationStrategy";

    /**
     * Determine if consent is required.
     *
     * @param service           the service
     * @param registeredService the registered service
     * @param authentication    the authentication
     * @param request           the request
     * @return true /false
     * @throws Throwable the throwable
     */
    boolean isConsentRequired(Service service,
                              RegisteredService registeredService,
                              Authentication authentication,
                              HttpServletRequest request) throws Throwable;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy