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.
Method from java.security.Policy$UnsupportedEmptyCollection Summary: |
---|
add, elements, implies |
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) {
perms.add(permission);
}
Adds a permission object to the current collection of permission
objects. |
public Enumeration<Permission> elements() {
return perms.elements();
}
Returns an enumeration of all the Permission objects in the
collection. |
public boolean implies(Permission permission) {
return perms.implies(permission);
}
Checks to see if the specified permission is implied by the
collection of Permission objects held in this PermissionCollection. |