Stamatis Karnouskos wrote:
> 
> Can you please send me your opencard.properties file ?
> 
I've attached it but it's the standard one that came with OCF.
I selected the PCSC install option when running the OCF install in the
first place.

To get hold of the terminals, etc. I use the following code:

        try {
                SmartCard.start();
                        Pcsc10CardTerminalFactory pcsc_ctr = new 
Pcsc10CardTerminalFactory();
                        ctr = CardTerminalRegistry.getRegistry();
                        String [] term = {"tr","PCSC",""};

                        terminals = ctr.getCardTerminals();
        } catch (opencard.core.terminal.CardTerminalException OCFexp) {
            OCFexp.printStackTrace(System.err);
                } catch (opencard.core.util.OpenCardPropertyLoadingException OCFexp) {
            OCFexp.printStackTrace(System.err);
                } catch (opencard.core.service.CardServiceException OCFexp) {
            OCFexp.printStackTrace(System.err);
                } catch (java.lang.ClassNotFoundException OCFexp) {
            OCFexp.printStackTrace(System.err);
                }


then the following to get an individual terminal:

                Pcsc10CardTerminal terminal =
(Pcsc10CardTerminal)terminals.nextElement();

cheers
Brian
-- 
------------------------------------------------------------------
 Brian McGuiness                          Phone: +44(0)1355 272171
 Senior Software Engineer                   Fax: +44(0)1355 272993
 eCEBS Limited                              
 The James Watt Building,             
 Scottish Enterprise Technology Park,
 East Kilbride
 G75 0QD                           Email: [EMAIL PROTECTED]
 United Kingdom                    Internet:  http://www.eCEBS.com

 This email is only for the use of the addressee.  It may contain 
 information which is legally privileged, confidential and exempt 
 from disclosure.  If you are not the intended recipient you are
 hereby notified that any dissemination, distribution, or copying 
 of this communication and its attachments is strictly prohibited.
------------------------------------------------------------------

opencard.properties

Reply via email to