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

net.unicon.cas.mfa.authentication.AuthenticationMethodTranslator 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.principal.WebApplicationService;

/**
 * Defines operations that are to translate a received/retrieved authentication method
 * into one that CAS can recognize. This is useful in cases where principal attributes
 * have defined arbitrary names for the MFA trigger, or that service providers are unable
 * to change submitted parameter names in the request to trigger MFA.
 * @author Misagh Moayyed
 */
public interface AuthenticationMethodTranslator {
    /**
     * Translate an authentication method to one that CAS can recognize.
     * Implementations may choose to decide what should happen if no mapping
     * is found between the source and target authentication methods.
     * @param targetService the target service
     * @param receivedAuthenticationMethod the received authentication method
     * @return the translated method name
     */
    String translate(final WebApplicationService targetService, final String receivedAuthenticationMethod);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy