Class ClientT1Protocol


  • public class ClientT1Protocol
    extends ClientProtocol
    The ClientT1Protocol class manages the client (terminal) side of the T=1 protocol exchange with a CAD.
    • Field Detail

      • numSeq

        protected boolean numSeq
      • numSeqTx

        protected boolean numSeqTx
      • numSeqRcv

        protected boolean numSeqRcv
      • blockToCard

        protected T1Block blockToCard
      • blockFromCard

        protected T1Block blockFromCard
    • Constructor Detail

      • ClientT1Protocol

        public ClientT1Protocol​(CadT1Client cad)
        Constructs a new ClientT1Protocol instance.
        Parameters:
        cad - The Cad object which all IO will be done through.
    • Method Detail

      • exchangeApdu

        public void exchangeApdu​(Apdu apdu)
                          throws java.io.IOException,
                                 T1Exception
        Exchange a case 1, 2s, 3s, 4s, 2e, 3e and 4e APDU with a CAD.
        Specified by:
        exchangeApdu in class ClientProtocol
        Parameters:
        apdu - The APDU to exchange.
        Throws:
        T1Exception - if the apdu is an unsupported case.
        java.io.IOException