- java.lang.Object
-
- apdu4j.core.APDUBIBO
-
- All Implemented Interfaces:
BIBO
,AutoCloseable
public class APDUBIBO extends Object implements BIBO
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
byte[]
transceive(byte[] bytes)
Transceives a bunch of bytes to a secure element, synchronously.ResponseAPDU
transceive(CommandAPDU command)
ResponseAPDU
transmit(CommandAPDU command)
-
-
-
Constructor Detail
-
APDUBIBO
public APDUBIBO(BIBO bibo)
-
-
Method Detail
-
transmit
public ResponseAPDU transmit(CommandAPDU command) throws BIBOException
- Throws:
BIBOException
-
transceive
public byte[] transceive(byte[] bytes) throws BIBOException
Description copied from interface:BIBO
Transceives a bunch of bytes to a secure element, synchronously.Comparable to:
IsoDep.transceive() in Android SCardTransmit() in PC/SC CardChannel.transmit(ByteBuffer, ByteBuffer) in javax.smartcardio Channel.transmit() in OpenMobileAPI
- Specified by:
transceive
in interfaceBIBO
- Parameters:
bytes
- payload- Returns:
- the bytes returned from the SE. The size should always be >= 2 bytes
- Throws:
BIBOException
- when transceive fails
-
transceive
public ResponseAPDU transceive(CommandAPDU command) throws BIBOException
- Throws:
BIBOException
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceBIBO
-
-