net.jini.security
Class AuthenticationPermission.AuthenticationPermissionCollection

java.lang.Object
  extended by java.security.PermissionCollection
      extended by net.jini.security.AuthenticationPermission.AuthenticationPermissionCollection
All Implemented Interfaces:
Serializable
Enclosing class:
AuthenticationPermission

static class AuthenticationPermission.AuthenticationPermissionCollection
extends PermissionCollection

See Also:
Serialized Form

Field Summary
private  List permissions
           
private static ObjectStreamField[] serialPersistentFields
           
private static long serialVersionUID
           
 
Constructor Summary
AuthenticationPermission.AuthenticationPermissionCollection()
           
 
Method Summary
 void add(Permission perm)
           
 Enumeration elements()
           
 boolean implies(Permission perm)
           
 boolean isReadOnly()
           
private  void readObject(ObjectInputStream s)
          Verifies the permissions list.
 void setReadOnly()
           
private  void writeObject(ObjectOutputStream s)
          Writes the state to the stream.
 
Methods inherited from class java.security.PermissionCollection
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

serialPersistentFields

private static final ObjectStreamField[] serialPersistentFields

permissions

private List permissions
Constructor Detail

AuthenticationPermission.AuthenticationPermissionCollection

AuthenticationPermission.AuthenticationPermissionCollection()
Method Detail

add

public void add(Permission perm)
Specified by:
add in class PermissionCollection

implies

public boolean implies(Permission perm)
Specified by:
implies in class PermissionCollection

elements

public Enumeration elements()
Specified by:
elements in class PermissionCollection

setReadOnly

public void setReadOnly()
Overrides:
setReadOnly in class PermissionCollection

isReadOnly

public boolean isReadOnly()
Overrides:
isReadOnly in class PermissionCollection

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Verifies the permissions list.

Throws:
InvalidObjectException - if the list is null or any element is not an instance of AuthenticationPermission
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Writes the state to the stream.

Throws:
IOException


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.