public class SecureMessagingAPDUSender extends Object
Constructor and Description |
---|
SecureMessagingAPDUSender(net.sf.scuba.smartcards.CardService service)
Creates an APDU sender for tranceiving wrapped APDUs.
|
Modifier and Type | Method and Description |
---|---|
void |
addAPDUListener(net.sf.scuba.smartcards.APDUListener l)
Adds a listener.
|
protected void |
notifyExchangedAPDU(net.sf.scuba.smartcards.APDUEvent event)
Notifies listeners about APDU event.
|
void |
removeAPDUListener(net.sf.scuba.smartcards.APDUListener l)
Removes a listener.
|
net.sf.scuba.smartcards.ResponseAPDU |
transmit(net.sf.scuba.smartcards.APDUWrapper wrapper,
net.sf.scuba.smartcards.CommandAPDU commandAPDU)
Transmits an APDU.
|
public SecureMessagingAPDUSender(net.sf.scuba.smartcards.CardService service)
service
- the card service for tranceiving the APDUspublic net.sf.scuba.smartcards.ResponseAPDU transmit(net.sf.scuba.smartcards.APDUWrapper wrapper, net.sf.scuba.smartcards.CommandAPDU commandAPDU) throws net.sf.scuba.smartcards.CardServiceException
wrapper
- the secure messaging wrappercommandAPDU
- the APDU to sendnet.sf.scuba.smartcards.CardServiceException
- if tranceiving failedpublic void addAPDUListener(net.sf.scuba.smartcards.APDUListener l)
l
- the listener to addpublic void removeAPDUListener(net.sf.scuba.smartcards.APDUListener l)
l
- the listener to removeprotected void notifyExchangedAPDU(net.sf.scuba.smartcards.APDUEvent event)
event
- the APDU eventCopyright © 2018. All rights reserved.