- java.lang.Object
-
- apdu4j.core.BlockingBIBO
-
- All Implemented Interfaces:
BIBO
,AutoCloseable
public class BlockingBIBO extends Object implements BIBO
Wraps the provided AsynchronousBIBO with blocking calls to get a BIBO
-
-
Constructor Summary
Constructors Constructor Description BlockingBIBO(AsynchronousBIBO 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.
-
-
-
Constructor Detail
-
BlockingBIBO
public BlockingBIBO(AsynchronousBIBO bibo)
-
-
Method Detail
-
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
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceBIBO
-
-