Considerations for the inherent methods and procedures

Source: Internet
Author: User
Tags file system

The inherent approach brings us some considerations for security issues. If your Java code emits a call to an intrinsic method, it is tantamount to passing control to the outside of the virtual machine "system." The inherent method has full access to the operating system!

Of course, if you write your own methods, that's exactly what we want. But this is unacceptable to the program-at least not tacitly. We don't want to see a piece of software downloaded from an Internet remote server that is free to manipulate the file system and other sensitive areas of the machine, unless it is specifically allowed to do so.

In order to prevent this from happening with j/direct,rni and COM integration, only the trusted (delegated) Java code has the authority to emit calls to the intrinsic method. According to the specific use of the program, the different conditions must be met before release. For example, a program that uses J/direct must have a digital signature, stating that it is fully trusted. While writing this book, not all of these security mechanisms have been implemented (for the Microsoft SDK for Java,beta version 2). So when the new version appears, be sure to keep an eye on its documentation.

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.