Package org.jmrtd.protocol
Class SecureMessagingAPDUSender
- java.lang.Object
-
- org.jmrtd.protocol.SecureMessagingAPDUSender
-
public class SecureMessagingAPDUSender extends Object
An APDU sender for tranceiving wrapped APDUs.- Since:
- 0.7.0
- Version:
- $Revision: 1805 $
- Author:
- The JMRTD team ([email protected])
-
-
Constructor Summary
Constructors Constructor Description SecureMessagingAPDUSender(net.sf.scuba.smartcards.CardService service)
Creates an APDU sender for tranceiving wrapped APDUs.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAPDUListener(net.sf.scuba.smartcards.APDUListener l)
Adds a listener.boolean
isExtendedAPDULengthSupported()
Returns a boolean indicating whether extended length APDUs are supported.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.
-
-
-
Method Detail
-
transmit
public net.sf.scuba.smartcards.ResponseAPDU transmit(net.sf.scuba.smartcards.APDUWrapper wrapper, net.sf.scuba.smartcards.CommandAPDU commandAPDU) throws net.sf.scuba.smartcards.CardServiceException
Transmits an APDU.- Parameters:
wrapper
- the secure messaging wrappercommandAPDU
- the APDU to send- Returns:
- the APDU received from the PICC
- Throws:
net.sf.scuba.smartcards.CardServiceException
- if tranceiving failed
-
isExtendedAPDULengthSupported
public boolean isExtendedAPDULengthSupported()
Returns a boolean indicating whether extended length APDUs are supported.- Returns:
- a boolean indicating whether extended length APDUs are supported
-
addAPDUListener
public void addAPDUListener(net.sf.scuba.smartcards.APDUListener l)
Adds a listener.- Parameters:
l
- the listener to add
-
removeAPDUListener
public void removeAPDUListener(net.sf.scuba.smartcards.APDUListener l)
Removes a listener. If the specified listener is not present, this method has no effect.- Parameters:
l
- the listener to remove
-
notifyExchangedAPDU
protected void notifyExchangedAPDU(net.sf.scuba.smartcards.APDUEvent event)
Notifies listeners about APDU event.- Parameters:
event
- the APDU event
-
-