Class AuthorizationException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AuthorizationCheckException, AuthorizationFailureException

public abstract class AuthorizationException extends SecurityException
A general authorization exception.
Author:
David M. Lloyd
See Also:
  • Constructor Details

    • AuthorizationException

      protected AuthorizationException(String msg, Principal authorizationPrincipal)
      Constructs a new AuthorizationException instance with an initial message. No cause is specified.
      Parameters:
      msg - the message
      authorizationPrincipal - the principal being authorized
    • AuthorizationException

      protected AuthorizationException(String msg, Throwable cause, Principal authorizationPrincipal)
      Constructs a new AuthorizationException instance with an initial message and cause.
      Parameters:
      msg - the message
      cause - the cause
      authorizationPrincipal - the principal being authorized
  • Method Details

    • getAuthorizationPrincipal

      public Principal getAuthorizationPrincipal()
      Get the principal being authorized.
      Returns:
      the principal being authorized