Authorization read-write control of the Java Security mechanism control file

Source: Internet
Author: User

In the Java java.policy This file, the definition of some information, such as Grant, is to authorize certain files, similar to liscense files,

This file takes a sandbox pattern, encapsulates a number of allowable ranges, enhances security,

For the Java.policy content:

Standard extensions get all permissions by default Grant CodeBase "file:${{java.ext.dirs}}/*" {Permission java.secur ity.
Allpermission;

}; Default permissions granted to all domains grant {//allows no thread to stop itself using the Java.lang.Thread.st
	OP ()//method that takes no argument.
	This this permission is granted by default to remain//backwards compatible. It is strongly recommended so you either remove the permission//from this policy file or further restrict it to C
	Ode sources//that your specify, because Thread.stop () is potentially unsafe.
	This is the API specification of Java.lang.Thread.stop () for more//information.

	Permission Java.lang.RuntimePermission "Stopthread";

	Allows anyone to listen on un-privileged ports permission Java.net.SocketPermission "localhost:1024-", "Listen";
	"Standard" properies that can is read by anyone permission Java.util.PropertyPermission "Java.version", "read"; Permission Java. util.
	Propertypermission "Java.vendor", "read";
	Permission Java.util.PropertyPermission "Java.vendor.url", "read";
	Permission Java.util.PropertyPermission "Java.class.version", "read";
	Permission Java.util.PropertyPermission "Os.name", "read";
	Permission Java.util.PropertyPermission "Os.version", "read";
	Permission Java.util.PropertyPermission "Os.arch", "read";
	Permission Java.util.PropertyPermission "File.separator", "read";
	Permission Java.util.PropertyPermission "Path.separator", "read";

	Permission Java.util.PropertyPermission "Line.separator", "read";
	Permission Java.util.PropertyPermission "Java.specification.version", "read";
	Permission Java.util.PropertyPermission "Java.specification.vendor", "read";

	Permission Java.util.PropertyPermission "Java.specification.name", "read";
	Permission Java.util.PropertyPermission "Java.vm.specification.version", "read";
	Permission Java.util.PropertyPermission "Java.vm.specification.vendor", "read"; Permission Java.util.PropertyPErmission "Java.vm.specification.name", "read";
	Permission Java.util.PropertyPermission "Java.vm.version", "read";
	Permission Java.util.PropertyPermission "Java.vm.vendor", "read";
Permission Java.util.PropertyPermission "Java.vm.name", "read";
 };


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.