Class SCardLibHandle

java.lang.Object
com.itemis.jscdlib.SCardLibHandle
All Implemented Interfaces:
AutoCloseable

public final class SCardLibHandle extends Object implements AutoCloseable

Provides convenient Java versions of SCard based functionality.

See Also:
  • Constructor Details

  • Method Details

    • listReaders

      public List<String> listReaders()

      Query the OS for available smart card readers.

      Be aware: The current implementation of this method allocates and destroys resources each time this method is called, which is a very costly operation. Thus it is not a good idea to call this method very often in small amount of time.

      Returns:
      A list of available reader names or empty list if none is available.
      Throws:
      JScdException - if something went wrong.
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception