Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads WEB Code JSP/Java

Java.PrivilegedCode

  • Category : JSP/Java
  • Tags :
  • Update : 2012-11-26
  • Size : 2kb
  • Downloaded :0次
  • Author :n****
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Download1 Download2
Don't use download software fo downloading.
If download fail,Try it again for free.
Introduction - If you have any usage issues, please Google them yourself
Privileged code in Java is a "all-or-nothing" proposition. While it does allow a normal user to execute some operations that would notmally require granting higher privileges (like viewing files in his particular directory), it may have a side-effect of exposing undesired operations, which can open up a security hole in the system. An explanation of the example: 1. Operations class contains file-related methods- listing of all files and deleting a file 2. PrivilegedCode class is a privileged wrapper around those operations 3. Both of those classes are combined into a single jar, which is granted high level of trust 4. Normally, any file operations require granting a special permission, so an attempt to directly execute calls on Operations class by an untrusted client fails 5. However, when the same untrusted client executes the same operations through the privileged interface, it succeeds, including deleting an arbitrary file passed on command line
Packet file list
(Preview for download)
access.policy
Customer.java
execute.bat
Java.III.PrivilegedCode.txt
Operations.java
PrivilegedCode.java
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is one of the largest source code repositories on the Internet!
Contact us : 632832888@qq.com
1999-2046 CodeBus All Rights Reserved.