Applet Security


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Applet Security

  1. #1
    Join Date
    May 2004
    Posts
    219

    Applet Security

    I'm having a little trouble with a client applet I'm making.
    Code:
    java.security.AccessControlException: access denied (java.net.SocketPermission [targetIp:port] connect,resolve)
    I know that you have to sign the jar or mess with your policy file or something, but I haven't been able to figure it out. I want it to be as easy as possible on the end user (ie, click OK and accept the certificate).

    I know I've seen IRC clients and such that don't require you to click anything, what's the deal with that? How are they doing it?

  2. #2
    Join Date
    Nov 2003
    Posts
    22
    Off the top of my head the default security model prevents applets from making any connections any server other than the one they were served from.

    Alan

  3. #3
    Join Date
    May 2004
    Posts
    219
    Yeah, I figure out how it worked a while ago.

  4. #4
    Join Date
    Jun 2004
    Posts
    14
    I think the irc applets use a proxy. They're downloaded from it, can communicate with it, and use it to connect to other machines.

  5. #5
    Join Date
    Feb 2004
    Posts
    808
    Originally posted by aaa
    I think the irc applets use a proxy. They're downloaded from it, can communicate with it, and use it to connect to other machines.
    clarification: the webserver they were downlaoded from runs a proxy that redirects the connection another machine. the applet is allowed to connect to the proxy, the proxy conencts to the irc server, the applet is none the wiser and thinks it has connected to an irc server

    to be honest, applets are too retaarded for what youre trying to do with them. write a proper app and make it available using Java Web Start - all the benefits of an applet, with the power of a proper application (i.e. not retarded)
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center