JMRTD 0.4.5

org.jmrtd
Class AAEvent

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

public class AAEvent
extends EventObject

Event to indicate AA 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
AAEvent(Object src, PublicKey pubkey, byte[] m1, byte[] m2, boolean success)
          Constructs a new event.
 
Method Summary
 byte[] getM1()
          Gets m1.
 byte[] getM2()
          Gets m2.
 PublicKey getPubkey()
          Gets the public key used in the protocol.
 boolean isSuccess()
          Indicates whether the authentication protocol was successfully executed.
 String toString()
          Gets a textual representation of this event.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AAEvent

public AAEvent(Object src,
               PublicKey pubkey,
               byte[] m1,
               byte[] m2,
               boolean success)
Constructs a new event.

Parameters:
src - event source
pubkey - public key
m1 - recoverable part
m2 - nonce sent by host
success - resulting status of authentication protocol
Method Detail

getPubkey

public PublicKey getPubkey()
Gets the public key used in the protocol.

Returns:
a public key

getM1

public byte[] getM1()
Gets m1.

Returns:
m1

getM2

public byte[] getM2()
Gets m2.

Returns:
m2

isSuccess

public boolean isSuccess()
Indicates whether the authentication protocol was successfully executed.

Returns:
status of the protocol

toString

public String toString()
Gets a textual representation of this event.

Overrides:
toString in class EventObject
Returns:
a textual representation of this event

JMRTD 0.4.5