|
|
Getting SocketPermission for localhost without signing JARs #2
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 themethod chechConnect() of the SecurityManager thus my application hasto get a java.io.SocketPermission for 127.0.0.1, "resolve".I was wondering if you could suggest me how to get such permissionwithout signing my java web start application.
|
|
0
|
|
|
|
Reply
|
igor531 (2)
|
3/23/2007 3:10:37 PM |
|
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.
|
|
0
|
|
|
|
Reply
|
Andrew
|
3/23/2007 3:42:28 PM
|
|
igor@borovkov.com wrote:> 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.I don't know much about the permissions unsigned WebStart apps have, but itseems reasonable that they would be prohibited from enquiring what networkinterfaces are available. If so then I doubt whether there is any way you cando this.But what I wanted to ask is: why do you want it ? I can't think of much usefor that information, and -- even if Java made it available to your restrictedapplication -- the data isn't likely to be much use or very reliable. Forinstance the machine I'm typing into thinks it knows what its numeric IPaddress and hostname are, but neither the IP nor the hostname are of any use atall outside my immediate LAN (and wouldn't necessarily be of any use eveninside 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 willingto let it read that information, I can't think of anything obviously useful itcould do with it. -- chris
|
|
0
|
|
|
|
Reply
|
Chris
|
3/25/2007 10:30:41 AM
|
|
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.
|
|
0
|
|
|
|
Reply
|
Andrew
|
3/25/2007 11:00:16 AM
|
|
|
3 Replies
127 Views
(page loaded in 0.078 seconds)
|
|
|
|
|
|
|
|
|