Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

Getting SocketPermission for localhost without signing JARs

Thread view: 
igor@borovkov.com - 23 Mar 2007 16:10 GMT
Hello.
I am writting the java web start application which I haven't to sign.
I need to use methods InetAddress.getAllByName(),
InetAddress.getLocalHost() which use the
method chechConnect() of the SecurityManager thus my application has
to get a java.io.SocketPermission for 127.0.0.1, "resolve".

I was wondering if you could suggest me how to get such permission
without signing my java web start application.
Andrew Thompson - 23 Mar 2007 16:42 GMT
On Mar 24, 2:10 am, i...@borovkov.com wrote:
..
> I am writting the java web start application which I haven't to sign.

Why?  Note that code can be signed for free.

Andrew T.
Chris Uppal - 25 Mar 2007 11:30 GMT
> I am writting the java web start application which I haven't to sign.
> I need to use methods InetAddress.getAllByName(),
[quoted text clipped - 4 lines]
> I was wondering if you could suggest me how to get such permission
> without signing my java web start application.

I don't know much about the permissions unsigned WebStart apps have, but it
seems reasonable that they would be prohibited from enquiring what network
interfaces are available.  If so then I doubt whether there is any way you can
do this.

But what I wanted to ask is: why do you want it ?  I can't think of much use
for that information, and -- even if Java made it available to your restricted
application -- the data isn't likely to be much use or very reliable.  For
instance the machine I'm typing into thinks it knows what its numeric IP
address and hostname are, but neither the IP nor the hostname are of any use at
all outside my immediate LAN (and wouldn't necessarily be of any use even
inside the LAN except that I like to use a very static local configuration).
If your application were running on this machine, then even if I were willing
to let it read that information, I can't think of anything obviously useful it
could do with it.

   -- chris
Andrew Thompson - 25 Mar 2007 12:00 GMT
On Mar 25, 8:30 pm, "Chris Uppal" <chris.up...@metagnostic.REMOVE-
THIS.org> wrote:
...
> I don't know much about the permissions unsigned WebStart apps have,

Pretty much the same as an (untrusted) applet -
very restricted.

Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.