Article View: borland.public.jbuilder.java.api
Article #538Re: Java security tutorial
From: Arthur Ore
Date: Fri, 30 May 2003 20:02
Date: Fri, 30 May 2003 20:02
33 lines
2070 bytes
2070 bytes
If you are referring to GetOpenProperties.java, then look at the propertyNames string array. You will notice that the only properties listed there are the ones that can be executed without a security exception. Try adding "user.name" to the array, which is one of the "Forbidden system properties". Now you should get the security exception. Arth "George" <geo54321@hotmail.com> wrote in message news:3ed64eea$1@newsgroups.borland.com... > In the section on restricting applications I can't get the same results as > the tutorial. > > When I run java -Djava.security.manager GetProps, I don't get the exception > that the tutorial does. For me GetProps returns all the properties without > throwing any exceptions. > > I checked the system default policy file on my system and it is the same as > the one indicated in the tutorial. > > I ran this program from the command line in Unix and from JBuilder 8 > Personal under Windows. And I got the same results (i.e no exception). > > Please tell me what I'm missing. > > TIA. > >
Technical Details
Message-ID:
<3ed7b8cf@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ed64eea$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,ff833d59b283828f X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2003-05-30 13:05:38 PST From: "Arthur Ore" <arthurnospam1@begone.foul.spam.jmore.freeserve.co.uk> Newsgroups: borland.public.jbuilder.java.api References: <3ed64eea$1@newsgroups.borland.com> Subject: Re: Java security tutorial Date: Fri, 30 May 2003 21:02:19 +0100 Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 81.76.198.244 Message-ID: <3ed7b8cf@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1054324943 81.76.198.244 (30 May 2003 13:02:23 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail