Save This Page
Home » openjdk-7 » java » security » [javadoc | source]
java.security
static class: Policy.UnsupportedEmptyCollection [javadoc | source]
java.lang.Object
   java.security.PermissionCollection
      java.security.Policy$UnsupportedEmptyCollection

All Implemented Interfaces:
    Serializable

This class represents a read-only empty PermissionCollection object that is returned from the getPermissions(CodeSource) and getPermissions(ProtectionDomain) methods in the Policy class when those operations are not supported by the Policy implementation.
Constructor:
 public UnsupportedEmptyCollection() 
Method from java.security.Policy$UnsupportedEmptyCollection Summary:
add,   elements,   implies
Methods from java.security.PermissionCollection:
add,   elements,   implies,   isReadOnly,   setReadOnly,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.security.Policy$UnsupportedEmptyCollection Detail:
 public  void add(Permission permission) 
    Adds a permission object to the current collection of permission objects.
 public Enumeration<Permission> elements() 
    Returns an enumeration of all the Permission objects in the collection.
 public boolean implies(Permission permission) 
    Checks to see if the specified permission is implied by the collection of Permission objects held in this PermissionCollection.