jxl.enclosure.security
Class ForbidenPermissions

java.lang.Object
  extended by jxl.enclosure.security.ForbidenPermissions

public final class ForbidenPermissions
extends java.lang.Object

Listing of permissions that are explicitly denied to any classes except Enclosure and its dependencies. This listing includes two types of of forbiden permissions.

1. Permissions that are forbiden by equals() evaluation. Example AllPermission().

2. Permissions that are forbiden by implies() evaluation. Example SecurityPermission("*").

Author:
Alex Lynch

Method Summary
static java.util.List<java.security.Permission> getForbidenEquals()
          Return an unmodifiable list of pemissions forbiden by equals() evaluation.
static java.util.List<java.security.Permission> getForbidenImplies()
          Return an unmodifiable list of pemissions forbiden by implies() evaluation.
static boolean isForbiden(java.security.Permission p)
          Check if p is forbiden.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isForbiden

public static boolean isForbiden(java.security.Permission p)
Check if p is forbiden.

Parameters:
p - permission to check
Returns:
true if the permission is forbided, false otherwise

getForbidenEquals

public static java.util.List<java.security.Permission> getForbidenEquals()
Return an unmodifiable list of pemissions forbiden by equals() evaluation.


getForbidenImplies

public static java.util.List<java.security.Permission> getForbidenImplies()
Return an unmodifiable list of pemissions forbiden by implies() evaluation.