public class WrappingCardService extends CardService
SESSION_STARTED_STATE, SESSION_STOPPED_STATE, state| Constructor and Description |
|---|
WrappingCardService(CardService service,
APDUWrapper wrapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the session with the card.
|
void |
disable() |
void |
enable() |
byte[] |
getATR()
Gets the answer to reset.
|
boolean |
isConnectionLost(Exception e)
Determines whether an exception indicates a tag is lost event.
|
boolean |
isEnabled() |
boolean |
isOpen()
Whether there is a session started with the card.
|
void |
open()
Opens a session with the card.
|
ResponseAPDU |
transmit(CommandAPDU capdu)
Sends an APDU to the card.
|
addAPDUListener, getAPDUListeners, getInstance, isExtendedAPDULengthSupported, notifyExchangedAPDU, removeAPDUListenerpublic WrappingCardService(CardService service, APDUWrapper wrapper)
public void open()
throws CardServiceException
CardServiceopen in class CardServiceCardServiceException - on errorpublic boolean isOpen()
CardServiceisOpen in class CardServicepublic ResponseAPDU transmit(CommandAPDU capdu) throws CardServiceException
CardServicetransmit in class CardServicecapdu - the Command APDU to sendCardServiceException - if the card operation failedpublic byte[] getATR()
throws CardServiceException
CardServicegetATR in class CardServiceCardServiceException - on errorpublic void close()
CardServiceclose in class CardServicepublic void enable()
public boolean isEnabled()
public void disable()
public boolean isConnectionLost(Exception e)
CardServiceisConnectionLost in class CardServicee - an exceptionCopyright © 2020. All rights reserved.