Hi,
I'm trying to make a SmartCard based JApplet work with Netscape 4.7 and the
Java Plugin 1.2.2 but I get the following error message
java.security.AccessControlException: access denied (java.io.FilePermission
D:\Program Files\Netscape\Communicator\Program\plugins\opencard.properties
read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at opencard.core.util.SystemAccess.loadProperties(SystemAccess.java:120)
at
opencard.opt.util.OpenCardPropertyFileLoader.load(OpenCardPropertyFileLoader
.java, Compiled Code)
at
opencard.opt.util.OpenCardPropertyFileLoader.loadProperties(OpenCardProperty
FileLoader.java, Compiled Code)
at opencard.core.service.SmartCard.start(SmartCard.java:514)
I followed the instructions of the "JavaCard framework" documentation (IBM)
as described in chapter 6.
1) create a self signed certificate,
2) digitally sign the JAR file,
3) define a .java.policy file in my user.home directory
keystore ".keystore";
grant signedBy "Mike"
{
permission java.util.PropertyPermission "*", "read,write";
permission java.io.FilePermission
"${java.home}/lib/opencard.properties", "read";
permission java.io.FilePermission
"${java.home}/lib/.opencard.properties", "read";
permission java.io.FilePermission
"${user.home}/opencard.properties", "read";
permission java.io.FilePermission
"${user.home}/.opencard.properties", "read";
permission java.lang.RuntimePermission "loadLibrary.*";
permission java.lang.RuntimePermission "reflect.declared.*";
};
I'm using GemXpresso 211, and have copied the following files in
$JRE_HOME/lib/ext:
* gemplus-terminals-4.1.jar,
* base-core.jar,
* base-opt.jar,
* gemplus-services.jar,
and opencard.properties in $JRE_HOME/lib.
I don't really understand why a file stored in Netscape's directory is
needed.
Any help would be appreciated,
Regards,
Fabrice
---
> 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.
[OCF] Running SmartCard based applet in a browser
TRAN XUAN Fabrice DvSi/DES/GRE Mon, 24 Jan 2000 05:27:44 -0800
- [OCF] Running SmartCard based applet in a ... TRAN XUAN Fabrice DvSi/DES/GRE
- [OCF] Running SmartCard based applet ... TRAN XUAN Fabrice DvSi/DES/GRE
