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

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


import org.jasig.cas.authentication.Authentication;

/**
 * An exception to indicate that a mismatch has been found between authenticated principals.
 * Credentials that are resolved into principals throughout the authentication flow are required
 * to be recognized by the same identifier {@link org.jasig.cas.authentication.principal.Principal#getId()}.
 * 

For instance, if credentials are resolved into Principal 'A' as part of the first * leg of the multifactor authentication, and the second leg then resolves the credentials to into a Principal * that is identified by 'B', this exception will be thrown. * @author Misagh Moayyed * @see MultiFactorCredentials */ public final class UnknownPrincipalMatchException extends RuntimeException { private static final long serialVersionUID = -6572930326804074536L; private final Authentication authentication; /** * Initialize the exception with the authentication given. * @param authentication the authentication context associated with this error. */ public UnknownPrincipalMatchException(final Authentication authentication) { this.authentication = authentication; } public Authentication getAuthentication() { return authentication; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy