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.
Method Summary |
void |
exchangeApdu(Apdu apdu)
Exchange a case 1, 2s, 3s, 4s, 2e, 3e and 4e APDU with a CAD. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
numSeq
protected boolean numSeq
numSeqTx
protected boolean numSeqTx
numSeqRcv
protected boolean numSeqRcv
blockToCard
protected T1Block blockToCard
blockFromCard
protected T1Block blockFromCard
ClientT1Protocol
public ClientT1Protocol(CadT1Client cad)
- Constructs a new ClientT1Protocol instance.
- Parameters:
cad
- The Cad object which all IO will be done through.
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
Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.