Agent System POND 1.0 (1.7.2000)

PkgAgentSystem
Class PermissionsHash

java.lang.Object
  |
  +--java.security.PermissionCollection
        |
        +--PkgAgentSystem.PermissionsHash

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.
Parameters:
permission - the Permission object to add.
Overrides:
add in class PermissionCollection

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".
Parameters:
permission - the Permission object to compare
Returns:
true if "permission" is a proper subset of a permission in the set, false if not.
Overrides:
implies in class PermissionCollection

elements

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

Agent System POND 1.0 (1.7.2000)

Submit a bug

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