Name
Runtime Permissions
Type
-
java.lang.RuntimePermission
Name
Various. All names in this class are dot-separated names and are subject to the same wildcard asterisk matching as the property permission class. Here is a list of the names of the runtime permissions used by the core Java API:
- accessClassInPackage.<name>
Allow code to access classes in the named package.
- accessDeclaredMembers
Allow code to use reflection to access the
private
orprotected
members of other classes.
- createClassLoader
Allow code to instantiate a class loader.
- createSecurityManager
Allow code to instantiate a security manager, which programmatically controls the sandbox.
- defineClassInPackage.<name>
Allow code to define classes in the named package.
- exitVM
Allow code to shut down the entire virtual machine.
- getClassLoader
Allow code to retrieve the class loader for a particular class.
- getProtectionDomain
Allow code to retrieve a protection domain object for a particular class.
- loadlibrary.<name>
Allow code to load the library with the given name.
- modifyThread
Allow code to change certain thread parameters.
- modifyThreadGroup
Allow code to change certain thread group parameters.
- queuePrintJob
Allow code to initiate a print job.
- readFileDescriptor
Allow code to read file descriptors (certain files opened by code in other protection domains).
- setContextClassLoader
Allow code to set the context class loader for a thread.
- setFactory
Allow code to create socket factories.
- setIO
Allow code to redirect the
System.in
,System.out
, orSystem.err ...
Get Java Security, 2nd 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.