Class CadT0Client

    • Constructor Detail

      • CadT0Client

        public CadT0Client​(java.io.InputStream in,
                           java.io.OutputStream out)
    • Method Detail

      • powerDown

        public void powerDown​(boolean disconnect)
                       throws java.io.IOException,
                              CadTransportException
        This command sends a POWER_DOWN command to the CAD.
        Specified by:
        powerDown in interface CadClientInterface
        Parameters:
        disconnect - This parameter is applicable to card simulators only. true = disconnect from the simulator false = powedown, but leave the connection open
        Throws:
        TLP224Exception - if the CAD is unable to power down correctly.
        java.io.IOException - if a communication error happens while communicating with the CAD.
        CadTransportException - Protocol error
      • powerUp

        public byte[] powerUp()
                       throws java.io.IOException,
                              CadTransportException
        This command sends a POWER_UP command to the CAD.
        Specified by:
        powerUp in interface CadClientInterface
        Returns:
        a byte array containing the ATR received from the CAD.
        Throws:
        TLP224Exception - if the CAD is unable to power up correctly.
        java.io.IOException - if a communication error happens while communicating with the CAD.
        CadTransportException - Protocol error