java.net
Class SocketPermissionCollection

java.lang.Object
  |
  +--java.security.PermissionCollection
        |
        +--java.net.SocketPermissionCollection
All Implemented Interfaces:
Serializable

final class SocketPermissionCollection
extends PermissionCollection
implements Serializable

if (init'd with IP, key is IP as string) if wildcard, its the wild card else its the cname?

Version:
1.50 12/03/01
Author:
Roland Schemers
See Also:
java.security.Permission, java.security.Permissions, java.security.PermissionCollection, Serialized Form

Field Summary
private  Vector permissions
          The SocketPermissions for this set.
 
Fields inherited from class java.security.PermissionCollection
 
Constructor Summary
SocketPermissionCollection()
          Create an empty SocketPermissions object.
 
Method Summary
 void add(Permission permission)
          Adds a permission to the SocketPermissions.
 Enumeration elements()
          Returns an enumeration of all the SocketPermission objects in the container.
 boolean implies(Permission permission)
          Check and see if this collection of permissions implies the permissions expressed in "permission".
 
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

permissions

private Vector permissions
The SocketPermissions for this set.

Constructor Detail

SocketPermissionCollection

public SocketPermissionCollection()
Create an empty SocketPermissions object.

Method Detail

add

public void add(Permission permission)
Adds a permission to the SocketPermissions. The key for the hash is the name in the case of wildcards, or all the IP addresses.

Specified by:
add in class PermissionCollection
Parameters:
permission - the Permission object to add.

implies

public boolean implies(Permission permission)
Check and see if this collection of permissions implies the permissions expressed in "permission".

Specified by:
implies in class PermissionCollection
Parameters:
permission - the Permission object to compare.
Returns:
true if "permission" is a proper subset of a permission in the collection, false if not.

elements

public Enumeration elements()
Returns an enumeration of all the SocketPermission objects in the container.

Specified by:
elements in class PermissionCollection
Returns:
an enumeration of all the SocketPermission objects.


comments?