Results 1 to 2 of 2

Thread: Secure applets

  1. #1
    Dennis's Avatar
    Dennis is offline Member
    Join Date
    May 2010
    Posts
    83
    Rep Power
    0

    Default Secure applets

    Does someone know how I can secure my applets?

    I mean:
    When I've create a "great" program-applet and I wanna show it on the internet, but I won't someone can visit the .class files.

    My question again:
    Does someone how I can put my applet-file on the internet without that someone can visit the .class files.

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    i guess you can try to create a custom url class loader that fetches the class files in a non obvious way from your server where they are hosted. for example, instead of a folder containing jar files that is directly invokable with a GET HTTP request from a web browser, create a servlet that reqires some kind of custom authentication and a POST request or something. Where your custom class loader would invoke this kind of extra steps to get the content from the servlet.

    Nothing is ever completely fool proof here, if someone really really wanted to get the application code, they would be able to eventually learn how the class loader works.

    Another approach might be to obfuscate your code. where all of the compiled class files would be available for anyone to download, but they would be not obvious as to what they are doing anymore.

    A third option might be to rearchitect the applet so that instead of needing to have class files visible at all for download to run in the applet, to create a kind of service oriented mechanism where the applet makes a web service kind of call out to a server that has a receiver servlet to listen to these service requests, and the services invoke your super special application code. this way the application logic is split into two tiers, the client applet class files we give away, and the server side you control and maintain and never give away. The obvious problem here is the induced latencies from needing to make web service calls, and your infrastructure needing to be able to handle as many users of the applet you expect there to be, and having your site always up in a fixed URL.

    So the best bet is to probably try to obfuscate your codes.

Similar Threads

  1. Secure
    By Rabrg in forum Advanced Java
    Replies: 27
    Last Post: 09-10-2010, 10:04 AM
  2. Why java is very secure
    By siva_vs_siva in forum New To Java
    Replies: 11
    Last Post: 09-08-2010, 12:57 PM
  3. How Java is so secure than other?
    By makpandian in forum New To Java
    Replies: 4
    Last Post: 06-26-2009, 05:22 AM
  4. Secure FTP Wrapper 3.0.3
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 07-23-2008, 02:56 PM
  5. Secure FTP Wrapper 3.0.2
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 04-29-2008, 07:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •