JMRTD 0.4.5

org.jmrtd
Class BACEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jmrtd.BACEvent
All Implemented Interfaces:
Serializable

public class BACEvent
extends EventObject

Event to indicate BAC protocol was executed.

Version:
$Revision: 1208 $
Author:
Martijn Oostdijk (martijn.oostdijk@gmail.com)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BACEvent(PassportService service, byte[] rndICC, byte[] rndIFD, byte[] kICC, byte[] kIFD, boolean success)
          Constructs a new event.
 
Method Summary
 byte[] getKICC()
          Gets the kICC key.
 byte[] getKIFD()
          Gets the kIFD key.
 byte[] getRndICC()
          Gets the random nonce sent by the ICC during this BAC protocol run.
 byte[] getRndIFD()
          Gets the random nonce sent by the IFD during this BAC protocol run.
 PassportService getService()
          Gets the event source.
 SecureMessagingWrapper getWrapper()
          Gets the resulting wrapper.
 boolean isSuccess()
          Gets the status of the executed BAC protocol run.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BACEvent

public BACEvent(PassportService service,
                byte[] rndICC,
                byte[] rndIFD,
                byte[] kICC,
                byte[] kIFD,
                boolean success)
Constructs a new event.

Parameters:
service - event source
rndICC - nonce sent by ICC
rndIFD - nonce sent by IFD
kICC - key material provided by ICC
kIFD - key material provided by IFD
success - status of protocol
Method Detail

getWrapper

public SecureMessagingWrapper getWrapper()
Gets the resulting wrapper.

Returns:
the resulting wrapper

isSuccess

public boolean isSuccess()
Gets the status of the executed BAC protocol run.

Returns:
status of the BAC protocol run.

getKICC

public byte[] getKICC()
Gets the kICC key.

Returns:
the kICC key material

getKIFD

public byte[] getKIFD()
Gets the kIFD key.

Returns:
the kIFD key material

getRndICC

public byte[] getRndICC()
Gets the random nonce sent by the ICC during this BAC protocol run.

Returns:
a random nonce

getRndIFD

public byte[] getRndIFD()
Gets the random nonce sent by the IFD during this BAC protocol run.

Returns:
a random nonce

getService

public PassportService getService()
Gets the event source.

Returns:
the service that generated this event

JMRTD 0.4.5