Class ShadowIsoDep
Control the allowed packet size with setExtendedLengthApduSupported(boolean) and setMaxTransceiveLength(int). Note that extended Apdu packets have a max transceive length of 0x10008
but most hardware implementations will have a lower limit. If extended length apdus are not
supported, the theoretical max transceive length is 0x105 but, again, may be lower in practice.
Dictate the Apdu response returned in transceive(byte[]) via setTransceiveResponseQueue(Queue), setTransceiveResponse(byte[]), or setNextTransceiveResponse(byte[]). setTransceiveResponse(byte[]) will be returned with every call to
transceive while setNextTransceiveResponse(byte[]) will be returned only once. If a queue is set
via setTransceiveResponseQueue(Queue), responses are polled in order and a null entry throws an
IOException. If none is set, transceive will throw an IOException.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void__constructor__(Tag tag) protected intprotected intprotected booleanstatic IsoDepvoidsetExtendedLengthApduSupported(boolean supported) voidsetMaxTransceiveLength(int length) voidsetNextTransceiveResponse(byte[] response) protected voidsetTimeout(int timeoutMillis) voidsetTransceiveResponse(byte[] response) voidsetTransceiveResponseQueue(Queue<byte[]> responseQueue) protected byte[]transceive(byte[] data) Methods inherited from class ShadowBasicTagTechnology
close, connect, isConnected
-
Constructor Details
-
ShadowIsoDep
public ShadowIsoDep()
-
-
Method Details
-
newInstance
-
__constructor__
-
transceive
- Throws:
IOException
-
setTransceiveResponse
public void setTransceiveResponse(byte[] response) -
setNextTransceiveResponse
public void setNextTransceiveResponse(byte[] response) -
setTransceiveResponseQueue
-
setTimeout
-
getTimeout
-
getMaxTransceiveLength
-
setMaxTransceiveLength
public void setMaxTransceiveLength(int length) -
isExtendedLengthApduSupported
-
setExtendedLengthApduSupported
public void setExtendedLengthApduSupported(boolean supported)
-