Before you begin
Java 2 security uses several policy files to determine the granted permission for each Java program. See the Java 2 security policy files topic for the list of available policy files that are supported by WebSphere Application Server.Policy file name | Description |
---|---|
java.policy | Contains default permissions for all of the Java programs on the node. This file seldom changes. |
server.policy | Contains default permissions for all of the WebSphere Application Server programs on the node. This file is rarely updated. |
client.policy | Contains default permissions for all of the applets and client containers on the node. |
Steps for this task
Result
The required permission is granted for all of the Java programs that run with the restarted JVM.Example
java.security.AccessControlException: access denied (java.io.FilePermission C:/WAS_HOME/lib/mail-impl.jar read)
grant codeBase "file:user_client_installed_location" { permission java.io.FilePermission "C:/WAS_HOME/lib/mail-impl.jar", "read"; };To decide whether to add a permission, refer to Access control exception.
Related concepts
Java 2 security policy files
Access control exception
Related tasks
Using Policy Tool to edit policy files
Protecting system resources and APIs (Java 2 security)
Related reference
Java 2 security