Build 1.0_r1(from source)

java.security
Class BasicPermissionCollection

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

final class BasicPermissionCollection
extends PermissionCollection

Specific PermissionCollection for storing BasicPermissions of arbitrary type.


Constructor Summary
BasicPermissionCollection()
           
 
Method Summary
 void add(Permission permission)
          Adds a permission to the collection.
 Enumeration<Permission> elements()
          Returns enumeration of contained elements.
 boolean implies(Permission permission)
          Indicates whether the argument permission is implied by the receiver.
 
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

BasicPermissionCollection

BasicPermissionCollection()
Method Detail

add

public void add(Permission permission)
Adds a permission to the collection. The first added permission must be a subclass of BasicPermission, next permissions must be of the same class as the first one.

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

elements

public Enumeration<Permission> elements()
Returns enumeration of contained elements.

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

implies

public boolean implies(Permission permission)
Indicates whether the argument permission is implied by the receiver.

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 receiver, and false if it is not.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature