站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Uses of Class java.security.Permission - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

JavaTM 2 Platform
Standard Edition

Uses of Class
java.security.Permission

Packages that use Permission
java.awt Contains all of the classes for creating user interfaces and for painting graphics and images. 
java.io Provides for system input and output through data streams, serialization and the file system. 
java.lang Provides classes that are fundamental to the design of the Java programming language. 
java.lang.reflect Provides classes and interfaces for obtaining reflective information about classes and objects. 
java.net Provides the classes for implementing networking applications. 
java.security Provides the classes and interfaces for the security framework. 
java.util Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array). 
 

Uses of Permission in java.awt
 

Subclasses of Permission in java.awt
 class AWTPermission
          This class is for AWT permissions.
 

Uses of Permission in java.io
 

Subclasses of Permission in java.io
 class FilePermission
          This class represents access to a file or directory.
 class SerializablePermission
          This class is for Serializable permissions.
 

Methods in java.io with parameters of type Permission
 boolean FilePermission.implies(Permission p)
          Checks if this FilePermission object "implies" the specified permission.
 

Uses of Permission in java.lang
 

Subclasses of Permission in java.lang
 class RuntimePermission
          This class is for runtime permissions.
 

Methods in java.lang with parameters of type Permission
 void SecurityManager.checkPermission(Permission perm)
          Throws a SecurityException if the requested access, specified by the given permission, is not permitted based on the security policy currently in effect.
 void SecurityManager.checkPermission(Permission perm, Object context)
          Throws a SecurityException if the specified security context is denied access to the resource specified by the given permission.
 

Uses of Permission in java.lang.reflect
 

Subclasses of Permission in java.lang.reflect
 class ReflectPermission
          The Permission class for reflective operations.
 

Uses of Permission in java.net
 

Subclasses of Permission in java.net
 class NetPermission
          This class is for various network permissions.
 class SocketPermission
          This class represents access to a network via sockets.
 

Methods in java.net that return Permission
 Permission URLConnection.getPermission()
          Returns a permission object representing the permission necessary to make the connection represented by this object.
 Permission HttpURLConnection.getPermission()
           
 

Methods in java.net with parameters of type Permission
 boolean SocketPermission.implies(Permission p)
          Checks if this socket permission object "implies" the specified permission.
 

Uses of Permission in java.security
 

Subclasses of Permission in java.security
 class AllPermission
          The AllPermission is a permission that implies all other permissions.
 class BasicPermission
          The BasicPermission class extends the Permission class, and can be used as the base class for permissions that want to follow the same naming convention as BasicPermission.
 class SecurityPermission
          This class is for security permissions.
 class UnresolvedPermission
          The UnresolvedPermission class is used to hold Permissions that were "unresolved" when the Policy was initialized.
 

Methods in java.security that return Permission
 Permission AccessControlException.getPermission()
          Gets the Permission object associated with this exeception, or null if there was no corresponding Permission object.
 

Methods in java.security with parameters of type Permission
abstract  boolean Permission.implies(Permission permission)
          Checks if the specified permission's actions are "implied by" this object's actions.
 boolean BasicPermission.implies(Permission p)
          Checks if the specified permission is "implied" by this object.
 void AccessControlContext.checkPermission(Permission perm)
          Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect, and the context in this object.
abstract  void PermissionCollection.add(Permission permission)
          Adds a permission object to the current collection of permission objects.
abstract  boolean PermissionCollection.implies(Permission permission)
          Checks to see if the specified permission is implied by the collection of Permission objects held in this PermissionCollection.
 void Permissions.add(Permission permission)
          Adds a permission object to the PermissionCollection for the class the permission belongs to.
 boolean Permissions.implies(Permission permission)
          Checks to see if this object's PermissionCollection for permissions of the specified permission's type implies the permissions expressed in the permission object.
 boolean UnresolvedPermission.implies(Permission p)
          This method always returns false for unresolved permissions.
 boolean ProtectionDomain.implies(Permission permission)
          Check and see if this ProtectionDomain implies the permissions expressed in the Permission object.
static void AccessController.checkPermission(Permission perm)
          Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect.
 boolean AllPermission.implies(Permission p)
          Checks if the specified permission is "implied" by this object.
 

Constructors in java.security with parameters of type Permission
AccessControlException.AccessControlException(String s, Permission p)
          Constructs an AccessControlException with the specified, detailed message, and the requested permission that caused the exception.
 

Uses of Permission in java.util
 

Subclasses of Permission in java.util
 class PropertyPermission
          This class is for property permissions.
 

Methods in java.util with parameters of type Permission
 boolean PropertyPermission.implies(Permission p)
          Checks if this PropertyPermission object "implies" the specified permission.
 


JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.