org.entityfs.security
Class AccessDeniedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.entityfs.support.exception.FileSystemException
org.entityfs.security.FileSystemSecurityException
org.entityfs.security.AccessDeniedException
- All Implemented Interfaces:
- Serializable
public class AccessDeniedException
- extends FileSystemSecurityException
This exception is thrown when a calling thread's Subject
is not
authorized for the operation.
- Since:
- 1.0
- Author:
- Karl Gustafsson
- See Also:
- Serialized Form
- In_jar:
- entityfs-core
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
AccessDeniedException
public AccessDeniedException(Subject s,
Permission p)
- Constructor.
- Parameters:
s
- Can be null
p
-
getSubject
public Subject getSubject()
- Get the
Subject
that made the call.
- Returns:
- The subject.
getPermission
public Permission getPermission()
- Get the permission that the
Subject
did not have.
- Returns:
- The permission.