ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzamy_5.4.0.1/50/sec/seccj2ja.htm

65 lines
3.6 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>Configure the java.policy file</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h5><a name="seccj2ja"></a>Configure the java.policy file</h5>
<p>The java.policy file is a global default policy file that is shared by all of the Java programs that run on the iSeries system. It is never recommended to modify this file. If some Java programs on a node require permissions that are not defined as defaults in the java.policy file then add the permissions by configuring the server.policy file. For more information, see <a href="seccj2se.htm">Configure the server.policy file</a>.</p>
<p>The java.policy file is included as part of the Java development kit, and it is not managed by the WebSphere configuration and file replication services.</p>
<p>The java.policy file that is used by WebSphere Application Server - Express is located in the /QIBM/ProdData/Java400/jdk13/lib/security directory. It contains these default permissions:</p>
<pre> grant codeBase &quot;file:${java.home}/lib/ext/*&quot; {
permission java.security.AllPermission;
};
grant codeBase &quot;file:/QIBM/ProdData/OS400/Java400/*&quot; {
permission java.security.AllPermission;
};
grant codeBase &quot;file:/QIBM/ProdData/OS400/Java400/ext/*&quot; {
permission java.security.AllPermission;
};
grant codeBase &quot;file:/QIBM/ProdData/Java400/*&quot; {
permission java.security.AllPermission;
};
grant {
permission java.lang.RuntimePermission &quot;stopThread&quot;;
permission java.net.SocketPermission &quot;localhost:1024-&quot;, &quot;listen&quot;;
permission java.util.PropertyPermission &quot;java.version&quot;, &quot;read&quot;;
permission java.util.PropertyPermission &quot;java.vendor&quot;, &quot;read&quot;;
permission java.util.PropertyPermission &quot;java.vendor.url&quot;, &quot;read&quot;;
permission java.util.PropertyPermission &quot;java.class.version&quot;, &quot;read&quot;;
permission java.util.PropertyPermission &quot;os.name&quot;, &quot;read&quot;;
permission java.util.PropertyPermission &quot;os.version&quot;, &quot;read&quot;;
permission java.util.PropertyPermission &quot;os.arch&quot;, &quot;read&quot;;
permission java.util.PropertyPermission &quot;file.separator&quot;, &quot;read&quot;;
permission java.util.PropertyPermission &quot;path.separator&quot;, &quot;read&quot;;
permission java.util.PropertyPermission &quot;line.separator&quot;, &quot;read&quot;;
permission java.util.PropertyPermission &quot;java.specification.version&quot;, &quot;read&quot;;
permission java.util.PropertyPermission &quot;java.specification.vendor&quot;, &quot;read&quot;;
permission java.util.PropertyPermission &quot;java.specification.name&quot;, &quot;read&quot;;
permission java.util.PropertyPermission &quot;java.vm.specification.version&quot;, &quot;read&quot;;
permission java.util.PropertyPermission &quot;java.vm.specification.vendor&quot;, &quot;read&quot;;
permission java.util.PropertyPermission &quot;java.vm.specification.name&quot;, &quot;read&quot;;
permission java.util.PropertyPermission &quot;java.vm.version&quot;, &quot;read&quot;;
permission java.util.PropertyPermission &quot;java.vm.vendor&quot;, &quot;read&quot;;
permission java.util.PropertyPermission &quot;java.vm.name&quot;, &quot;read&quot;;
};</pre>
</body>
</html>