Package javax.smartcardio

Examples of javax.smartcardio.Card.disconnect()


        try {
          IsoDepTamaCommunicator tamaCommunicator = new IsoDepTamaCommunicator(readerWriter, readerWriter);
          tamaCommunicator.connectAsInitiator();
        }
        catch (Exception e1) {
          card.disconnect(true);
          e1.printStackTrace();
          try {
            Thread.sleep(1000);
          }
          catch (InterruptedException e) {
View Full Code Here


        }
        catch (Exception e) {
        }
        finally {
          log.info("Disconnect from card");
          card.disconnect(true);
          notifyStatus(TerminalStatus.DISCONNECTED);
        }
      }
      catch (CardException e) {
        throw new IOException(e);
View Full Code Here

          catch (Exception e) {
            e.printStackTrace();
          }
          finally {
            if (card != null) {
              card.disconnect(true);
            }
            try {
              while (cardTerminal.isCardPresent()) {
                try {
                  Thread.sleep(500);
View Full Code Here

          catch (InterruptedException e) {
            break;
          }
        }
        finally {
          card.disconnect(true);
        }
      }
    }
    catch (CardException e) {
      throw new IOException(e);
View Full Code Here

          handleNfcipConnection(nfcipConnection);

          //          tagListener.onTag(new AcsTag(tagType, historicalBytes, card));
        }
        catch (Exception e1) {
          card.disconnect(true);
          e1.printStackTrace();
          try {
            Thread.sleep(1000);
          }
          catch (InterruptedException e) {
View Full Code Here

                System.out.println("Channel number: " + channel.getChannelNumber());

                 execTestScript(channel);

            } finally {
                card.disconnect(false);
            }
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.