RuntimePermission


RuntimePermission java.lang

Java 1.2 serializable permission

This class is a java.security.Permission that represents access to various important system facilities. A RuntimePermission has a name, or target, that represents the facility for which permission is being sought or granted. The name "exitVM" represents permission to call System.exit( ) , and the name "accessClassInPackage.java.lang" represents permission to read classes from the java.lang package. The name of a RuntimePermission may use a ".*" suffix as a wildcard. For example, the name "accessClassInPackage.java.*" represents permission to read classes from any package whose name begins with "java.". RuntimePermission does not use action list strings as some Permission classes do; the name of the permission alone is enough.

The following are supported RuntimePermssion names :

accessClassInPackage. package

getProtectionDomain

setFactory

accessDeclaredMembers

loadLibrary .li brary_name

setIO

createClassLoader

modifyThread

setSecurityManager

createSecurityManager

modifyThreadGroup

stopThread

defineClassInPackage. package

queuePrintJob

writeFileDescriptor

exitVM

readFileDescriptor

 

getClassLoader

set-ContextClassLoader

 

System administrators configuring security policies should be familiar with these permission names, the operations they govern access to, and with the risks inherent in granting any of them. Although system programmers may need to work with this class, application programmers should never need to use RuntimePermssion directly.

Figure 10-53. java.lang.RuntimePermission

 public final class  RuntimePermission  extends java.security.BasicPermission {  // Public Constructors  public  RuntimePermission  (String  name  );        public  RuntimePermission  (String  name  , String  actions  );   } 



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