Permissions


Permissions java.security

Java 1.2 serializable

This class stores an arbitrary collection of Permission objects. When Permission objects are added with the add( ) method, they are grouped into an internal set of PermissionCollection objects that contain only a single type of Permission . Use the elements( ) method to obtain an Enumeration of the Permission objects in the collection. Use implies( ) to determine if a specified Permission is implied by any of the Permission objects in the collection. Permissions is used by system code that manages security policies. Applications rarely need to use it.

Figure 14-29. java.security.Permissions

 public final class  Permissions  extends PermissionCollection          implements Serializable {  // Public Constructors  public  Permissions  ( );  // Public Methods Overriding PermissionCollection  public void  add  (Permission  permission  );        public java.util.Enumeration<Permission>  elements  ( );        public boolean  implies  (Permission  permission  );   } 



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net