Module apdu4j.core
Package apdu4j.core

Class BlockingBIBO

  • All Implemented Interfaces:
    BIBO, AutoCloseable

    public class BlockingBIBO
    extends Object
    implements BIBO
    Wraps the provided AsynchronousBIBO with blocking calls to get a 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 interface BIBO
        Parameters:
        bytes - payload
        Returns:
        the bytes returned from the SE. The size should always be >= 2 bytes
        Throws:
        BIBOException - when transceive fails