Class UnauthorizedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opencastproject.security.api.UnauthorizedException
All Implemented Interfaces:
Serializable

public class UnauthorizedException extends Exception
An exception that indicates that a subject attempted to take an action for which it was not authorized.
See Also:
  • Constructor Details

    • UnauthorizedException

      public UnauthorizedException(String message)
      Constructs an UnauthorizedException using the specified message.
      Parameters:
      message - the message describing the reason for this exception
    • UnauthorizedException

      public UnauthorizedException(User user, String action)
      Constructs an UnauthorizedException for the specified user's attempt to take a specified action.
      Parameters:
      user - the current user
      action - the action attempted
    • UnauthorizedException

      public UnauthorizedException(User user, String action, AccessControlList acl)
      Constructs an UnauthorizedException for the specified user's attempt to take a specified action.
      Parameters:
      user - the current user
      action - the action attempted
      acl - the access control list that prevented the action