Results 1 to 4 of 4
- 01-12-2013, 01:26 PM #1
Member
- Join Date
- Jan 2013
- Posts
- 2
- Rep Power
- 0
Security options for my requirements
Hello All,
I'm feeling like a total newbie, but since my question is very focused on applet security, I think it's better to post here instead of in the "New to Java" section. @Moderator : feel free to move it.
So here is my story :
Knowing nearly nothing about Java, I managed to build an applet whose purpose is to encrypt/decrypt some elements in a html page.
When the page is loaded in the browser, javascript passes the encrypted element content to the applet's decrypt function.
The applet returns the decrypted value and javascript replaces the encrypted element value with the cleartext.
The applet needs to access the user's certificate in the browser keystore ("SunMSCAPI" for windows, "Mozilla-JSS" for Linux).
The applet needs also to phone home using an SSL connection.
The crypto functions are supplied by a BouncyCastle JAR.
As a total newbie working under the deadline pressure, I tried everything found here and there to make my applet work, without knowing precisely what I was doing.
As a result, my code has several "doPrivileged()" calls, my policy is "permission java.security.AllPermission;", and my applet is (self) signed.
This works well, after the user has clicked the "Always trust..." checkbox on several popups mentioning "..UNKNOWN publisher..." the first time the applet is used.
So here is my question : do I really need special security settings to allow the applet to do its job ?
Is is possible to do the same job without signing the applet ?
Does my user really need to lower the Java security in his/her browser to allow my applet to run ?
TIA
- 01-12-2013, 01:33 PM #2
- 02-01-2013, 12:33 PM #3
Member
- Join Date
- Jan 2013
- Posts
- 2
- Rep Power
- 0
- 02-01-2013, 12:43 PM #4
Re: Security options for my requirements
Applets aren't as popular as they once were, and the security model changed between Java 6 and Java 7 (and then some) but you could try elsewhere.
Don't forget to link to all cross posts so that anyone who has a solution isn't antagonized.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
Naming requirements and conventions ?
By javajosh in forum New To JavaReplies: 4Last Post: 11-01-2011, 04:52 AM -
different requirements on the same server
By ra78 in forum NetworkingReplies: 12Last Post: 06-28-2010, 05:50 PM -
Requirements for building a SSL VPN
By adityag in forum New To JavaReplies: 0Last Post: 01-19-2010, 04:46 PM -
New to Java.. What are the requirements?
By konn in forum New To JavaReplies: 10Last Post: 03-27-2009, 12:50 PM -
External DTD requirements
By jwilley44 in forum XMLReplies: 0Last Post: 03-06-2009, 09:25 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks