Interface CadClientInterface

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void exchangeApdu​(Apdu apdu)
      Exchanges com.sun.javacard.apduio.Apdu with a card.
      void powerDown()
      Powerdown a card or simulator and then disconnect
      void powerDown​(boolean disconnect)
      Send powerdown to a card
      byte[] powerUp()
      Send powerup to a card or a simulator
    • Method Detail

      • exchangeApdu

        void exchangeApdu​(Apdu apdu)
                   throws java.io.IOException,
                          CadTransportException
        Exchanges com.sun.javacard.apduio.Apdu with a card.
        Parameters:
        apdu - A pair of C-APDU and R-APDU
        Throws:
        java.io.IOException - Communication error
        CadTransportException - Protocol error
      • powerDown

        void powerDown​(boolean disconnect)
                throws java.io.IOException,
                       CadTransportException
        Send powerdown to a card
        Parameters:
        disconnect - This parameter is applicable to card simulators only. true = disconnect from the simulator false = powedown, but leave the connection open
        Throws:
        java.io.IOException - Communication error
        CadTransportException - Protocol error
      • powerDown

        void powerDown()
                throws java.io.IOException,
                       CadTransportException
        Powerdown a card or simulator and then disconnect
        Throws:
        java.io.IOException - Communication error
        CadTransportException - Protocol error
      • powerUp

        byte[] powerUp()
                throws java.io.IOException,
                       CadTransportException
        Send powerup to a card or a simulator
        Returns:
        ATR bytes
        Throws:
        java.io.IOException - Communication error
        CadTransportException - Protocol error