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

net.unicon.cas.mfa.authentication.RegisteredServiceMfaRoleProcessor Maven / Gradle / Ivy

Go to download

This module is intended to include all the Java you need to add to a CAS implementation to take advantage of the extended multifactor authentication features in this project.

There is a newer version: 2.0.0-RC3
Show newest version
package net.unicon.cas.mfa.authentication;

import org.jasig.cas.authentication.Authentication;
import org.jasig.cas.authentication.principal.WebApplicationService;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Defines a mechanism that allows the service's attributes to be compared with the users attributes.
 *
 * @author John Gasper
 * @author Unicon, inc.
 */
public interface RegisteredServiceMfaRoleProcessor {

    /**
     * Resolves the authn_method for a given service if it supports mfa_role and the user has the appropriate attribute.
     * @param authentication the user authentication object
     * @param targetService the target service being tested
     * @return a list (usually one) mfa authn request context.
     */
    List resolve(@NotNull final Authentication authentication,
                                                          @NotNull final WebApplicationService targetService);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy