AllPermission


AllPermission java.security

Java 1.2 serializable permission

This class is a Permission subclass whose implies( ) method always returns true . This means that code that has been granted AllPermission is granted all other possible permissions. This class exists to provide a convenient way to grant all permissions to completely trusted code. It should be used with care. Applications typically do not need to work directly with Permission objects.

Figure 14-2. java.security.AllPermission

 public final class  AllPermission  extends Permission {  // Public Constructors  public  AllPermission  ( );        public  AllPermission  (String  name  , String  actions  );  // Public Methods Overriding Permission  public boolean  equals  (Object  obj  );        public String  getActions  ( );  default:"<all actions>"  public int  hashCode  ( );  constant  public boolean  implies  (Permission  p  );  constant  public PermissionCollection  newPermissionCollection  ( );   } 



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