Package com.sun.javacard.clientlib
Class ApduIOCardAccessor
- java.lang.Object
-
- com.sun.javacard.clientlib.ApduIOCardAccessor
-
- All Implemented Interfaces:
CardAccessor
public class ApduIOCardAccessor extends java.lang.Object implements CardAccessor
Implementation of CardAccessor using ApduIO library
-
-
Field Summary
Fields Modifier and Type Field Description protected com.sun.javacard.apduio.CadClientInterface
cad
Reference to underlying ApduIO object.
-
Constructor Summary
Constructors Constructor Description ApduIOCardAccessor()
Creates a new instance of ApduIOCardAccessor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeCard()
Close and powerdown the card.byte[]
exchangeAPDU(byte[] capdu)
Implementation of exchangeAPDU method of CardAccessor interface
-
-
-
Method Detail
-
exchangeAPDU
public byte[] exchangeAPDU(byte[] capdu) throws java.io.IOException
Implementation of exchangeAPDU method of CardAccessor interface- Specified by:
exchangeAPDU
in interfaceCardAccessor
- Parameters:
capdu
- byte array containing C-APDU- Returns:
- R-APDU in the format described in the javadoc for CardAccessor
- Throws:
java.io.IOException
- In case of I/O error
-
closeCard
public void closeCard() throws java.lang.Exception
Close and powerdown the card.- Specified by:
closeCard
in interfaceCardAccessor
- Throws:
java.lang.Exception
- Thrown if a problem occured
-
-