java.net
Class SocketPermissionCollection
java.lang.Object
java.security.PermissionCollection
java.net.SocketPermissionCollection
- All Implemented Interfaces:
- Serializable
- final class SocketPermissionCollection
- extends java.security.PermissionCollection
- implements Serializable
if (init'd with IP, key is IP as string)
if wildcard, its the wild card
else its the cname?
- Author:
- Roland Schemers
- See Also:
Permission
,
Permissions
,
PermissionCollection
,
Serialized Form
Fields inherited from class java.security.PermissionCollection |
|
Method Summary |
void |
add(java.security.Permission permission)
Adds a permission to the SocketPermissions. |
Enumeration |
elements()
Returns an enumeration of all the SocketPermission objects in the
container. |
boolean |
implies(java.security.Permission permission)
Check and see if this collection of permissions implies the permissions
expressed in "permission". |
private void |
readObject(ObjectInputStream in)
|
private void |
writeObject(ObjectOutputStream out)
|
Methods inherited from class java.security.PermissionCollection |
isReadOnly, setReadOnly, toString |
perms
private transient List perms
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
serialPersistentFields
private static final ObjectStreamField[] serialPersistentFields
SocketPermissionCollection
public SocketPermissionCollection()
- Create an empty SocketPermissions object.
add
public void add(java.security.Permission permission)
- Adds a permission to the SocketPermissions. The key for the hash is
the name in the case of wildcards, or all the IP addresses.
- Parameters:
permission
- the Permission object to add.
- Throws:
IllegalArgumentException
- - if the permission is not a
SocketPermission
SecurityException
- - if this SocketPermissionCollection object
has been marked readonly
implies
public boolean implies(java.security.Permission permission)
- Check and see if this collection of permissions implies the permissions
expressed in "permission".
- Returns:
- true if "permission" is a proper subset of a permission in
the collection, false if not.
elements
public Enumeration elements()
- Returns an enumeration of all the SocketPermission objects in the
container.
- Returns:
- an enumeration of all the SocketPermission objects.
writeObject
private void writeObject(ObjectOutputStream out)
throws IOException
- Throws:
IOException
readObject
private void readObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException