public final class SystemPermission extends BasicPermission
| Permission | Description | Risk | 
|---|---|---|
| "jmx" "control" | Controls the ability of JMX clients to control Derby and view security sensitive attributes through Derby's MBeans. | JMX clients may be able to change the state of the running system | 
| "jmx" "monitor" | Controls the ability of JMX clients to
      monitor Derby through Derby's MBeans, such as viewing number of current connections and
      configuration settings.  Note: security related settings require controlaction onjmx | JMX clients can see information about a runing system including software versions. | 
| Modifier and Type | Field and Description | 
|---|---|
| static String | CONTROLAction ( "control") to perform control actions through JMX
 on engine, server or jmx. | 
| static String | ENGINEPermission target name ( "engine") for actions applicable
 to the core database engine. | 
| static SystemPermission | ENGINE_MONITORConstant representing  SystemPermission("engine, "monitor"). | 
| static String | JMXPermission target name ( "jmx") for actions applicable
 to management of Derby's JMX MBeans. | 
| static String | MONITORAction ( "monitor") to perform monitoring actions through JMX
 on engine and server. | 
| static String | SERVERPermission target name ( "server") for actions applicable
 to the network server. | 
| static String | SHUTDOWNThe server and engine shutdown action ( "shutdown"). | 
| static String | USE_DERBY_INTERNALSAction ( "useDerbyInternals") by the engine to lookup Derby contexts. | 
| Constructor and Description | 
|---|
| SystemPermission(String name,
                String actions)Creates a new SystemPermission with the specified name. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object other)Does this permission equal another object. | 
| String | getActions()Return the permission's actions in a canonical form. | 
| boolean | implies(Permission permission)Does this permission imply another. | 
| PermissionCollection | newPermissionCollection() | 
| String | toString() | 
hashCodecheckGuard, getNamepublic static final String SERVER
"server") for actions applicable
 to the network server.public static final String ENGINE
"engine") for actions applicable
 to the core database engine.public static final String JMX
"jmx") for actions applicable
 to management of Derby's JMX MBeans.public static final String SHUTDOWN
"shutdown").public static final String CONTROL
"control") to perform control actions through JMX
 on engine, server or jmx.
 For JMX control permission is required to get attributes that are deemed sensiive from a security aspect, such as the network server's port number, security mechanisms and any information about the file system.
public static final String MONITOR
"monitor") to perform monitoring actions through JMX
 on engine and server.public static final String USE_DERBY_INTERNALS
"useDerbyInternals") by the engine to lookup Derby contexts.public static final SystemPermission ENGINE_MONITOR
SystemPermission("engine, "monitor").public SystemPermission(String name, String actions)
name - the name of the SystemPermissionNullPointerException - if name or actions is nullIllegalArgumentException - if name is empty or not a legal SystemPermissionBasicPermission.BasicPermission(String)public String getActions()
getActions in class BasicPermissionpublic PermissionCollection newPermissionCollection()
newPermissionCollection in class BasicPermissionpublic boolean equals(Object other)
equals in class BasicPermissionpublic boolean implies(Permission permission)
implies in class BasicPermissionpublic String toString()
toString in class PermissionApache Derby 10.14 API Documentation - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.