- java.lang.Object
-
- apdu4j.core.GetMoreDataWrapper
-
- All Implemented Interfaces:
AsynchronousBIBO
public final class GetMoreDataWrapper extends Object implements AsynchronousBIBO
-
-
Constructor Summary
Constructors Constructor Description GetMoreDataWrapper(AsynchronousBIBO bibo)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<byte[]>
transmit(byte[] command)
Transceives a bunch of bytes to a secure element, asynchronously.static GetMoreDataWrapper
wrap(AsynchronousBIBO bibo)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface apdu4j.core.AsynchronousBIBO
close
-
-
-
-
Constructor Detail
-
GetMoreDataWrapper
public GetMoreDataWrapper(AsynchronousBIBO bibo)
-
-
Method Detail
-
wrap
public static GetMoreDataWrapper wrap(AsynchronousBIBO bibo)
-
transmit
public CompletableFuture<byte[]> transmit(byte[] command)
Description copied from interface:AsynchronousBIBO
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.
- Specified by:
transmit
in interfaceAsynchronousBIBO
- Parameters:
command
- payload- Returns:
- the bytes returned from the SE. The size should always be >= 2 bytes
-
-