Package org.jmrtd
Class WrappedAPDUEvent
- java.lang.Object
-
- java.util.EventObject
-
- net.sf.scuba.smartcards.APDUEvent
-
- org.jmrtd.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
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.sf.scuba.smartcards.CommandAPDU
getPlainTextCommandAPDU()
Returns the unprotected, plain-text Command APDU.net.sf.scuba.smartcards.ResponseAPDU
getPlainTextResponseAPDU()
Returns the unprotected, plain-text Response APDU.-
Methods inherited from class net.sf.scuba.smartcards.APDUEvent
getCommandAPDU, getResponseAPDU, getSequenceNumber, getType
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
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 servicetype
- the type of event, typically this identifies the APDU wrapper somehowsequenceNumber
- the sequence number of the APDU exchange within a sessionplainTextCommandAPDU
- the unprotected command APDUplainTextResponseAPDU
- the unprotected response APDUwrappedCommandAPDU
- the protected command APDUwrappedResponseAPDU
- 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
-
-