Package org.jmrtd

Class WrappedAPDUEvent

  • All Implemented Interfaces:
    Serializable

    public class WrappedAPDUEvent
    extends net.sf.scuba.smartcards.APDUEvent
    An event signifying an exchange of wrapped (protected) command and response APDUs. This makes the underlying unprotected APDUs available.
    Since:
    0.6.4
    Version:
    $Revision: 1763 $
    Author:
    The JMRTD team ([email protected])
    See Also:
    Serialized Form
    • Constructor Detail

      • WrappedAPDUEvent

        public WrappedAPDUEvent​(Object source,
                                Serializable type,
                                int sequenceNumber,
                                net.sf.scuba.smartcards.CommandAPDU plainTextCommandAPDU,
                                net.sf.scuba.smartcards.ResponseAPDU plainTextResponseAPDU,
                                net.sf.scuba.smartcards.CommandAPDU wrappedCommandAPDU,
                                net.sf.scuba.smartcards.ResponseAPDU wrappedResponseAPDU)
        Creates an APDU exchange event.
        Parameters:
        source - the source of the event, typically a card service
        type - the type of event, typically this identifies the APDU wrapper somehow
        sequenceNumber - the sequence number of the APDU exchange within a session
        plainTextCommandAPDU - the unprotected command APDU
        plainTextResponseAPDU - the unprotected response APDU
        wrappedCommandAPDU - the protected command APDU
        wrappedResponseAPDU - the protected command APDU
    • Method Detail

      • getPlainTextCommandAPDU

        public net.sf.scuba.smartcards.CommandAPDU getPlainTextCommandAPDU()
        Returns the unprotected, plain-text Command APDU.
        Returns:
        the unprotected, plain-text Command APDU
      • getPlainTextResponseAPDU

        public net.sf.scuba.smartcards.ResponseAPDU getPlainTextResponseAPDU()
        Returns the unprotected, plain-text Response APDU.
        Returns:
        the unprotected, plain-text Response APDU