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.library_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.

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