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

org.jasig.cas.web.flow.AcceptableUsagePolicyRepository Maven / Gradle / Ivy

package org.jasig.cas.web.flow;

import org.jasig.cas.authentication.Credential;
import org.springframework.webflow.execution.RequestContext;

import java.io.Serializable;

/**
 * This is {@link AcceptableUsagePolicyRepository}.
 *
 * @author Misagh Moayyed
 * @since 4.2
 */
public interface AcceptableUsagePolicyRepository extends Serializable {
    /**
     * Verify whether the policy is accepted.
     *
     * @param requestContext the request context
     * @param credential     the credential
     * @return true if policy is accepted.
     */
    boolean verify(RequestContext requestContext, Credential credential);

    /**
     * Record the fact that the policy is accepted..
     *
     * @param requestContext the request context
     * @param credential     the credential
     * @return true if choice was saved.
     */
    boolean submit(RequestContext requestContext, Credential credential);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy