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.
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.
> 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.