Class PrincipalException

All Implemented Interfaces:
Serializable

public class PrincipalException extends AuthenticationException
Describes a principal resolution error, which is a subcategory of authentication error. Principal resolution necessarily happens after successful authentication for a given credential.
Since:
4.0.0
See Also:
  • Constructor Details

    • PrincipalException

      public PrincipalException(String message, Map<String,Throwable> handlerErrors, Map<String,AuthenticationHandlerExecutionResult> handlerSuccesses)
      Creates a new instance.
      Parameters:
      message - Error message.
      handlerErrors - Map of handler names to errors.
      handlerSuccesses - Map of handler names to authentication successes.
  • Method Details

    • getCode

      public String getCode()
      Description copied from class: RootCasException
      If there is a chained exception it recursively calls getCode() on the cause of the chained exception rather than the returning the code itself.
      Overrides:
      getCode in class RootCasException
      Returns:
      Returns the code.