Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.security
Class Permissions.PermissionsHash  view Permissions.PermissionsHash download Permissions.PermissionsHash.java

java.lang.Object
  extended byjava.security.PermissionCollection
      extended byjava.security.Permissions.PermissionsHash
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Permissions

private static final class Permissions.PermissionsHash
extends PermissionCollection

Implements the permission collection for all permissions without one of their own, and obeys serialization of JDK.


Field Summary
private  java.util.Hashtable perms
          Hashtable where we store permissions.
private static long serialVersionUID
          Compatible with JDK 1.1+.
 
Fields inherited from class java.security.PermissionCollection
 
Constructor Summary
private Permissions.PermissionsHash()
           
 
Method Summary
 void add(Permission perm)
          Add a permission.
 java.util.Enumeration elements()
          Return the elements.
 boolean implies(Permission perm)
          Returns true if perm is in the collection.
 
Methods inherited from class java.security.PermissionCollection
isReadOnly, setReadOnly, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Compatible with JDK 1.1+.

See Also:
Constant Field Values

perms

private final java.util.Hashtable perms
Hashtable where we store permissions.

Constructor Detail

Permissions.PermissionsHash

private Permissions.PermissionsHash()
Method Detail

add

public void add(Permission perm)
Add a permission. We don't need to check for read-only, as this collection is never exposed outside of Permissions, which has already done that check.

Specified by:
add in class PermissionCollection

implies

public boolean implies(Permission perm)
Returns true if perm is in the collection.

Specified by:
implies in class PermissionCollection

elements

public java.util.Enumeration elements()
Return the elements.

Specified by:
elements in class PermissionCollection