aspose file tools
The moose likes Distributed Java and the fly likes Java application's permissions? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Java application Watch "Java application New topic
Author

Java application's permissions?

darine darine
Ranch Hand

Joined: Mar 08, 2001
Posts: 43
Hi All
I'm trying to learm RMI,so how to access or set up or change or edit your application
persmissions?because I have an exception when i run the server class that creates the remote objects and register them,it says access denied,so i need to know how to set up the permissions for that app.
Thanks for your time.
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

It's all done with policy files. Alas, there's surprisingly little information at http://java.sun.com that's easy to find on writing policy files. I looked around for a few minutes, and came up empty handed. But play around a little with policytool, a binary that comes bundled with the JDK. You'll at least see what access permissions are understood by the JVM that way.


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Some of the security documentation is indeed surprisingly scattered -- I had to it from quite a few places when I was writing the security chapter for BJN (and the editor subsequently tried to cut my tables ).
Assuming you have installed the JDK documentation, you can find
  • information about the security architecture in docs\guide\security\spec\security-specTOC.fm.html.
  • information about the policy file syntax in docs\guide\security\PolicyFiles.html -- the policytool can be pretty hard to use if you don't understand how the policy file works.
  • information about the permissions used in the JDK in docs\guide\security\permissions.html; there's also useful documentation in the permission classes' API javadoc
  • a guide to the policytool in docs\tooldocs\win32\policytool.html
  • If you don't have the JDK documentation installed, click on the links to go to the online copy.
    - Peter
    [ April 12, 2002: Message edited by: Peter den Haan ]
     
    I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
     
    subject: Java application's permissions?
     
    Similar Threads
    is this not a security issue
    installing problem! why this happens?
    JDOPermission permissions?
    How to disallow directory browsing on web server
    Client Issue