Hallo Susanne,

please read my posting (a few days ago) regarding applet signing.
In a nutshell: javax.comm can not be used under the Netscape security
model.

If you do NOT use javax.comm, things may work. You need to set some
permissions then (see package netscape.security in OCF), including "load
library".

Regards,
� �Daniel


Here comes some example code. It asks for permissions, but does not work
due to
the javax.comm issue. You can view the messages in the Netscape Java
Console.

� � � try {
� � � � sys = new NetscapeSystemAccess();
� � � � � � � � SystemAccess.setSystemAccess( sys );
� � � � netscape.security.PrivilegeManager.enablePrivilege
("UniversalFileAccess");
� � � � netscape.security.PrivilegeManager.enablePrivilege
("UniversalLinkAccess");
� � � � netscape.security.PrivilegeManager.enablePrivilege
("UniversalConnect");
� � � � System.err.println("Permissions granted...");
� � � � � � � � String string1 = System.getProperty("java.class.path");
� � � � System.err.println("Class Path property: "+string1);
� � � � � � � �opencard.core.util.SystemAccess.getSystemAccess
().loadLibrary("win32com");
/* even postponed class loading does not seem to work... */
� � � � aClass = Class.forName("javax.comm.CommDriver"); // DLL is loaded
by static initializer!
� � � }
� � � catch(UnsatisfiedLinkError e) {
� � � � System.err.println("Possibly not a Netscape Browser. Could not set
Netscape system access.");
� � � }
� � � catch( Exception e) {
� � � � System.err.println("Something went wrong when setting Netscape
system access: "+e.getMessage());
� � � }
|------------------------+------------------------+------------------------|
|                        |   "Guth, Susanne"      |                        |
|                        |   <[EMAIL PROTECTED]|   � � � � An:          |
|                        |   ec.sema.de>          |   [EMAIL PROTECTED]|
|                        |                        |   � � � � Kopie:       |
|                        |   14.02.00 19:23       |                        |
|                        |                        |   � � � � Thema:       |
|                        |                        |   [OCF] Example Applet |
|                        |                        |   running with Netscape|
|------------------------+------------------------+------------------------|






Hello there!

I have a stable program accessing my Java Smart Card using OCF. Now I am
trying to modify this program so that it runs as an Applet (signed and
within Netscape).

Does somebody has an example program for me working with "nativ browser
support" and using the classes (Nescape)-SystemAccess?

...
SystemAccess sys = new NetscapeSystemAccess();
� �SystemAccess.setSystemAccess(sys);
...

I would also appreciate some hints for the work with applets and OCF.
Greeting from Cologne/Germany

_________________________________________
Susanne Guth
Sema Group CGTec GmbH
K�ln/Germany
Tel. 0221/ 981 75 - 23
Email: [EMAIL PROTECTED]
_________________________________________


---
> 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.






---
> 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.

Reply via email to