OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Pauley, John (john.pauleycybermark.com)
Date: Thu Jan 03 2002 - 09:30:14 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Hello,
    I'm having issues with the Context class ListReaders method. It appears
    that no matter how many readers have been registered with pc/sc, ListReaders
    only returns the first reader. For example, there are 3 readers registered
    with pc/sc, but in the following code snippet, c.ListReaders() returns an
    array of one string, that string being the first registered reader:

            Context c = Context.c;
            String[] sa = c.ListReaders();
            for(int i=0;i<sa.length;i++){
                System.out.println("Reader["+ i + "] = " + sa[i]);
            }

    I looked at Context.c, but saw nothing that looked out of the ordinary, but
    I am not too familiar with jni. Any comments or suggestions?

    Thanks,
    John

    ***************************************************************
    Unix Smart Card Developers - M.U.S.C.L.E.
    (Movement for the Use of Smart Cards in a Linux Environment)
    http://www.linuxnet.com/
    To unsubscribe send an email to majordomolinuxnet.com with
    unsubscribe sclinux
    ***************************************************************