Hello!
    Finally, I succeded in setting the security files for my OCF applet.
I'm able now to find my terminals within my applet, to detect the card,
but following the sample application from Gemplus, I fail to do the
mutual authentication between applet and card. More exactly I mean this
portion of code:
                 try
                {
                    // process mutual authentication
                    // initialize/update and external/authenticate are
done
                    ---> until here everithing is OK
                    Result result =
serv.openSecureChanel(authenticationInput);
                    ---> here I never can get
                    // check the result object for authentication status

                    if((result!=null) && !result.isOK())
                    {
                        throw new Exception("authentication error : " +
result.getResultMessage());
                    }
                }
                catch(Exception ex)
                {
                    // authentication fails
                    throw new Exception("authentication error : " +
ex.getMessage() );
                }
    I'm using a scheme in in which OCFApplet.jar, gemxpresso.jar,
gse.jar are downloaded by the browser and base-core.jar, base-opt.jar,
comm.jar, gemplus-util.jar, gemplus-terminals.jar, gemplus-services.jar,
gemplus-rad-terminals.jar, cryptog.jar are in the local CLASSPATH.
    But inspite of the fact that gemplus-util.jar is in the CLASSPATH,
at the authentication phase I get this error in the Plugin Console:

 Exception occurred during event dispatching:
 java.lang.NoClassDefFoundError: com/gemplus/util/HEX
     at
com.gemplus.opencard.service.op.TargetFileManager.getAID(TargetFileManager.java:196)

     at
com.gemplus.opencard.service.op.TargetFileManager.getDefaultSecurityDomainIdentifier(TargetFileManager.java:222)

     at
com.gemplus.opencard.service.op.OPKeyManager.init(OPKeyManager.java,
Compiled Code)
     at
com.gemplus.opencard.service.op.OPKeyManager.<init>(OPKeyManager.java:216)

     at
com.gemplus.opencard.service.op.vop.CardServiceVOPCoreOP201.authentication(CardServiceVOPCoreOP201.java:749)

     at
com.gemplus.opencard.service.op.CardServiceOPCore.openSecureChanel(CardServiceOPCore.java:1826)

     at OCFApplet.initOCF(OCFApplet.java:272)
     at OCFApplet.button1ActionPerformed(OCFApplet.java:390)
     at OCFApplet.access$0(OCFApplet.java:388)
     at OCFApplet$1.actionPerformed(OCFApplet.java:347)
     at java.awt.Button.processActionEvent(Button.java:308)
     at java.awt.Button.processEvent(Button.java:281)
     at java.awt.Component.dispatchEventImpl(Component.java, Compiled
Code)
     at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled
Code)
     at
java.awt.EventDispatchThread.pumpOneEventForComponent(EventDispatchThread.java,
Compiled Code)
     at
java.awt.EventDispatchThread.pumpEventsForComponent(EventDispatchThread.java:95)

     at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:90)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

    I tried also with the gemplus-util.jar downloaded, but the same
error appeared.
    If there is anybode that can help me, please.
    Thanky you!!



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