org.entityfs.security
Class AccessDeniedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.entityfs.support.exception.FileSystemException
                  extended by org.entityfs.security.FileSystemSecurityException
                      extended by 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

Constructor Summary
AccessDeniedException(Subject s, Permission p)
          Constructor.
 
Method Summary
 Permission getPermission()
          Get the permission that the Subject did not have.
 Subject getSubject()
          Get the Subject that made the call.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccessDeniedException

public AccessDeniedException(Subject s,
                             Permission p)
Constructor.

Parameters:
s - Can be null
p -
Method Detail

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.