Module apdu4j.core
Package apdu4j.core

Interface AsynchronousBIBO

    • Method Detail

      • transmit

        CompletableFuture<byte[]> transmit​(byte[] bytes)
        Transceives a bunch of bytes to a secure element, asynchronously.

        Comparable to:

        IsoDep.transceive() in Android SCardTransmit() in PC/SC CardChannel.transmit(ByteBuffer, ByteBuffer) in javax.smartcardio Channel.transmit() in OpenMobileAPI The future is completed exceptionally if a response APDU can not be retrieved.

        Parameters:
        bytes - payload
        Returns:
        the bytes returned from the SE. The size should always be >= 2 bytes
      • close

        default void close()