Home
Java
2D Graphics GUI
3D
Advanced Graphics
Ant
Apache Common
Chart
Class
Collections Data Structure
Data Type
Database SQL JDBC
Design Pattern
Development Class
EJB3
Email
Event
File Input Output
Game
Generics
GWT
Hibernate
I18N
J2EE
J2ME
JavaFX
JDK 6
JDK 7
JNDI LDAP
JPA
JSP
JSTL
Language Basics
Network Protocol
PDF RTF
Reflection
Regular Expressions
Scripting
Security
Servlets
Spring
Swing Components
Swing JFC
SWT JFace Eclipse
Threads
Tiny Application
Velocity
Web Services SOA
XML
Grant « Security « Java
Java
Security
Grant
1.
Policy File: Give permission to execute all runtime-protected methods
2.
Policy File: Use policytool to create or edit an existing policy file
3.
grant all classes loaded from h1.com ability to read \temp\myfile
4.
grant ability to create and write c:\temp\myfile
5.
grant ability to list files in the user's home directory
6.
grant ability to read any file or directory under c:\temp
7.
grant ability to delete any file or directory in c:\temp\mydir
8.
grant ability to execute (see Runtime.exec()) the file c:\java.exe
9.
grant ability to read and write any file in current directory
10.
grant ability to read any file under current directory
11.
grant ability to read any file
12.
grant all classes loaded from h1.com ability to read the 'myprop' system properties
13.
grant ability to write the 'myprop' system properties
14.
grant ability to read and write the 'myprop' system properties
15.
grant ability to read all properties that start with 'myprops.'
16.
grant ability to read all system properties
17.
grant ability to write all system properties
18.
grant ability to read and write all system properties
19.
Policy File: Give permission to read all system properties