Agent System POND 1.2 (28.2.2002)

PkgAgentSystem
Class PermissionsHash

java.lang.Object
  |
  +--java.security.PermissionCollection
        |
        +--PkgAgentSystem.PermissionsHash
All Implemented Interfaces:
Serializable

final class PermissionsHash
extends PermissionCollection
implements Serializable

A PermissionsHash stores a homogeneous set of permissions in a hashtable.

Version:
1.37, 98/12/01
Author:
Roland Schemers
See Also:
Permission, Permissions, Serialized Form

Constructor Summary
(package private) PermissionsHash()
          Create an empty PermissionsHash object.
 
Method Summary
 void add(Permission permission)
          Adds a permission to the PermissionsHash.
 Enumeration elements()
          Returns an enumeration of all the Permission objects in the container.
 boolean implies(Permission permission)
          Check and see if this set of permissions implies the permissions expressed in "permission".
 void remove(Permission permission)
          Removes a permission from the PermissionsHash.
 
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
 

Constructor Detail

PermissionsHash

PermissionsHash()
Create an empty PermissionsHash object.
Method Detail

add

public void add(Permission permission)
Adds a permission to the PermissionsHash.
Overrides:
add in class PermissionCollection
Parameters:
permission - the Permission object to add.

remove

public void remove(Permission permission)
Removes a permission from the PermissionsHash.
Parameters:
permission - the Permission object to remove.

implies

public boolean implies(Permission permission)
Check and see if this set of permissions implies the permissions expressed in "permission".
Overrides:
implies in class PermissionCollection
Parameters:
permission - the Permission object to compare
Returns:
true if "permission" is a proper subset of a permission in the set, false if not.

elements

public Enumeration elements()
Returns an enumeration of all the Permission objects in the container.
Overrides:
elements in class PermissionCollection
Returns:
an enumeration of all the Permissions.

Agent System POND 1.2 (28.2.2002)

Submit a bug

Copyright 2001,2002 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.