Build 1.0_r1(from source)

java.net
Class SocketPermissionCollection

java.lang.Object
  extended by java.security.PermissionCollection
      extended by java.net.SocketPermissionCollection
All Implemented Interfaces:
Serializable

final class SocketPermissionCollection
extends PermissionCollection

SocketPermissionCollection is a class which holds a collection of SocketPermission objects and can answer a boolean indicating whether or not a specific permissions is implied by a SocketPermissionCollection.


Constructor Summary
SocketPermissionCollection()
           
 
Method Summary
 void add(Permission permission)
          Adds the argument to the collection.
 Enumeration<Permission> elements()
          Returns an enumeration of the permissions in the receiver.
 boolean implies(Permission permission)
          Returns if this permission collection implies 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
 

Constructor Detail

SocketPermissionCollection

public SocketPermissionCollection()
Method Detail

add

public void add(Permission permission)
Description copied from class: PermissionCollection
Adds the argument to the collection.

Specified by:
add in class PermissionCollection
Parameters:
permission - java.security.Permission the permission to add to the collection.

elements

public Enumeration<Permission> elements()
Description copied from class: PermissionCollection
Returns an enumeration of the permissions in the receiver.

Specified by:
elements in class PermissionCollection
Returns:
Enumeration the permissions in the receiver.

implies

public boolean implies(Permission permission)
Returns if this permission collection implies permission. Basically it tests if permission is the subset of this collection.

Specified by:
implies in class PermissionCollection
Parameters:
permission - java.security.Permission the permission to check
Returns:
boolean true if the argument permission is implied by the permissions in the receiver, and false if it is not.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature