net.unicon.cas.mfa.authentication.RegisteredServiceMfaRoleProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cas-mfa-java Show documentation
Show all versions of cas-mfa-java Show documentation
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.
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);
}