Hello,
monika sinha wrote:
>
> Hi,
>
> I'm having a problem while loading the applet to receive the ATR
> signal from the Gemplus GCR410 smartcard reader connected at COM1.
> [...] java.security.AccessControlException: access denied
> (java.util.PropertyPermission OpenCard.loaderClassName read)
> [...]
Humm... I had this type of error when I defined no security
settings or when the applet was not signed, or when I didn't
have a "[user.home]/.java.policy" file (as the procedure in the
OCF 1.2 programmer's guide is describing).
> 3. Running a sample applet to receive the ATR. Have signed the applet
> using the the jdk1.3 which foolows the th e dynamic trust
> management principle. Thus there is no need to deploy the
> keystore or modify the policy file at the user end.
It seems to me that the problem is here.. I haven't tried 1.3
yet and I was not aware of this feature (I used Blackdown JDK
1.2.2 on Linux). Does it really work? Could you try with a
".java.policy" file to see if it changes something? Maybe also
make a test of an applet opening a file outside of OCF..
Hope it'll help.
Cheers,
Christophe.
PS: I put a listing of my policy file below..
= All my programs have a purpose. This one, for example, takes the =
= contents of RAM and places it in a file called 'core'. --pangur =
--
-------------------------------------------------------------
[EMAIL PROTECTED] - Gemplus Research Lab
Phone: +33 4-42-36-57-83 | Disclaimer: I don't speak for Gemplus
Gemplus doesn't speak for me... it is better that way!
-------------------------------------------------------------
= = = = = = = = = = = = = ~/.java.policy = = = = = = = = = = = = =
keystore ".keystore";
grant signedBy "cm" {
// read and write arbitrary (including sensitive) system properties
permission java.util.PropertyPermission "*", "read,write";
// read the 'opencard.properties' file in the standard locations
permission java.io.FilePermission
"${java.home}/lib/opencard.properties", "read";
permission java.io.FilePermission
"${user.home}/.opencard.properties", "read";
permission java.io.FilePermission "${user.dir}/opencard.properties",
"read";
permission java.io.FilePermission
"${user.dir}/.opencard.properties", "read";
etc. (properties for javax.comm, dyn. libs, etc...)
---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/
! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
! [EMAIL PROTECTED]
! containing the word
! unsubscribe
! in the body.