Name
RuntimePermission
Synopsis
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. |
getProtectionDomain |
setFactory |
accessDeclaredMembers |
loadLibrary.li
|
setIO |
createClassLoader |
modifyThread |
setSecurityManager |
createSecurityManager |
modifyThreadGroup |
stopThread |
defineClassInPackage. |
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 ...
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.