Package com.sun.javacard.apduio
Class ClientT1Protocol
- java.lang.Object
-
- com.sun.javacard.apduio.ClientProtocol
-
- com.sun.javacard.apduio.ClientT1Protocol
-
public class ClientT1Protocol extends ClientProtocol
The ClientT1Protocol class manages the client (terminal) side of the T=1 protocol exchange with a CAD.
-
-
Field Summary
Fields Modifier and Type Field Description protected T1Block
blockFromCard
protected T1Block
blockToCard
protected boolean
numSeq
protected boolean
numSeqRcv
protected boolean
numSeqTx
-
Fields inherited from class com.sun.javacard.apduio.ClientProtocol
cad
-
-
Constructor Summary
Constructors Constructor Description ClientT1Protocol(CadT1Client cad)
Constructs a new ClientT1Protocol instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exchangeApdu(Apdu apdu)
Exchange a case 1, 2s, 3s, 4s, 2e, 3e and 4e APDU with a CAD.
-
-
-
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 classClientProtocol
- Parameters:
apdu
- The APDU to exchange.- Throws:
T1Exception
- if the apdu is an unsupported case.java.io.IOException
-
-