Class 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 Detail

      • SecureMessagingAPDUSender

        public SecureMessagingAPDUSender​(net.sf.scuba.smartcards.CardService service)
        Creates an APDU sender for tranceiving wrapped APDUs.
        Parameters:
        service - the card service for tranceiving the APDUs
    • 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 wrapper
        commandAPDU - 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