Package org.opencastproject.security.api
Class UnauthorizedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opencastproject.security.api.UnauthorizedException
- All Implemented Interfaces:
Serializable
An exception that indicates that a subject attempted to take an action for which it was not authorized.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnauthorizedException(String message) Constructs an UnauthorizedException using the specified message.UnauthorizedException(User user, String action) Constructs an UnauthorizedException for the specified user's attempt to take a specified action.UnauthorizedException(User user, String action, AccessControlList acl) Constructs an UnauthorizedException for the specified user's attempt to take a specified action. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnauthorizedException
Constructs an UnauthorizedException using the specified message.- Parameters:
message- the message describing the reason for this exception
-
UnauthorizedException
Constructs an UnauthorizedException for the specified user's attempt to take a specified action.- Parameters:
user- the current useraction- the action attempted
-
UnauthorizedException
Constructs an UnauthorizedException for the specified user's attempt to take a specified action.- Parameters:
user- the current useraction- the action attemptedacl- the access control list that prevented the action
-