Class MixedPrincipalException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apereo.cas.authentication.RootCasException
org.apereo.cas.authentication.AuthenticationException
org.apereo.cas.authentication.PrincipalException
org.apereo.cas.authentication.exceptions.MixedPrincipalException
All Implemented Interfaces:
Serializable

public class MixedPrincipalException extends org.apereo.cas.authentication.PrincipalException
Describes an error condition where non-identical principals have been resolved while authenticating multiple credentials.
Since:
4.0.0
See Also:
  • Constructor Details

    • MixedPrincipalException

      public MixedPrincipalException(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.authentication.principal.Principal a, org.apereo.cas.authentication.principal.Principal principal)
      Creates a new instance from what would otherwise have been a successful authentication event and the two disparate principals resolved.
      Parameters:
      authentication - Authentication event.
      a - First resolved principal.
      principal - Second resolved principal.
  • Method Details

    • getFirst

      public org.apereo.cas.authentication.principal.Principal getFirst()
      First resolved principal.
    • getSecond

      public org.apereo.cas.authentication.principal.Principal getSecond()
      Second resolved principal.