final class ServicePermissionCollection
extends java.security.PermissionCollection
Permission,
Permissions,
PermissionCollection| Modifier and Type | Field and Description |
|---|---|
private boolean |
all_allowed
Boolean saying if "*" is in the collection.
|
private java.util.Map |
filterPermissions
Table of permissions with filter expressions.
|
private java.util.Map |
permissions
Table of permissions.
|
private static java.io.ObjectStreamField[] |
serialPersistentFields |
(package private) static long |
serialVersionUID |
| Constructor and Description |
|---|
ServicePermissionCollection()
Creates an empty ServicePermissions object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.security.Permission permission)
Adds a permission to this permission collection.
|
private int |
effective(java.lang.String requestedName,
int desired,
int effective)
Consult permissions map to compute the effective permission for the
requested permission name.
|
java.util.Enumeration |
elements()
Returns an enumeration of all the
ServicePermission
objects in the container. |
boolean |
implies(java.security.Permission permission)
Determines if a set of permissions implies the permissions expressed in
permission. |
private void |
readObject(java.io.ObjectInputStream in) |
private void |
writeObject(java.io.ObjectOutputStream out) |
static final long serialVersionUID
private transient java.util.Map permissions
private boolean all_allowed
private java.util.Map filterPermissions
private static final java.io.ObjectStreamField[] serialPersistentFields
public ServicePermissionCollection()
public void add(java.security.Permission permission)
add in class java.security.PermissionCollectionpermission - The Permission object to add.java.lang.IllegalArgumentException - If the specified permission is not a
ServicePermission object.java.lang.SecurityException - If this
ServicePermissionCollection object has been marked
read-only.public boolean implies(java.security.Permission permission)
permission.implies in class java.security.PermissionCollectionpermission - The Permission object to compare.true if permission is a proper
subset of a permission in the set; false
otherwise.private int effective(java.lang.String requestedName,
int desired,
int effective)
requestedName - The requested service name.desired - The desired actions.effective - The effective actions.public java.util.Enumeration elements()
ServicePermission
objects in the container.elements in class java.security.PermissionCollectionprivate void writeObject(java.io.ObjectOutputStream out)
throws java.io.IOException
java.io.IOExceptionprivate void readObject(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundException