Class UnresolvedPrincipalException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UnresolvedPrincipalException
    extends org.apereo.cas.authentication.PrincipalException
    Describes an error condition where a principal could not be resolved.
    Since:
    4.0.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      UnresolvedPrincipalException()
      Instantiates a new Unresolved principal exception.
      UnresolvedPrincipalException​(java.lang.Exception e)
      Instantiates a new Unresolved principal exception.
      UnresolvedPrincipalException​(java.util.Map<java.lang.String,java.lang.Throwable> handlerErrors)
      Instantiates a new Unresolved principal exception.
      UnresolvedPrincipalException​(org.apereo.cas.authentication.Authentication authentication)
      Creates a new instance from an authentication event that was successful prior to principal resolution.
      UnresolvedPrincipalException​(org.apereo.cas.authentication.Authentication authentication, java.lang.Exception cause)
      Creates a new instance from an authentication event that was successful prior to principal resolution.
    • Method Summary

      • Methods inherited from class org.apereo.cas.authentication.AuthenticationException

        getHandlerErrors, getHandlerSuccesses
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from class org.apereo.cas.authentication.PrincipalException

        getCode
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
    • Constructor Detail

      • UnresolvedPrincipalException

        public UnresolvedPrincipalException​(org.apereo.cas.authentication.Authentication authentication)
        Creates a new instance from an authentication event that was successful prior to principal resolution.
        Parameters:
        authentication - Authentication event.
      • UnresolvedPrincipalException

        public UnresolvedPrincipalException()
        Instantiates a new Unresolved principal exception.
      • UnresolvedPrincipalException

        public UnresolvedPrincipalException​(java.lang.Exception e)
        Instantiates a new Unresolved principal exception.
        Parameters:
        e - the e
      • UnresolvedPrincipalException

        public UnresolvedPrincipalException​(java.util.Map<java.lang.String,java.lang.Throwable> handlerErrors)
        Instantiates a new Unresolved principal exception. Successes are tracked as an empty map.
        Parameters:
        handlerErrors - the handler errors
      • UnresolvedPrincipalException

        public UnresolvedPrincipalException​(org.apereo.cas.authentication.Authentication authentication,
                                            java.lang.Exception cause)
        Creates a new instance from an authentication event that was successful prior to principal resolution. This form should be used when a resolver exception prevented principal resolution.
        Parameters:
        authentication - Authentication event.
        cause - Exception that prevented principal resolution.