JMRTD 0.4.5

org.jmrtd
Class EACEvent

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

public class EACEvent
extends EventObject

Event to indicate EAC protocol was executed.

Author:
Wojciech Mostowski
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
EACEvent(PassportService service, int keyId, PublicKey cardKey, KeyPair keyPair, org.jmrtd.cert.CVCPrincipal caReference, List<org.jmrtd.cert.CardVerifiableCertificate> terminalCertificates, PrivateKey terminalKey, String documentNumber, byte[] cardChallenge, boolean success)
          Constructs a new event.
 
Method Summary
 byte[] getCardChallenge()
          Return the card's challenge generated during EAC.
 PublicKey getCardPublicKey()
          Return the card's public key used during EAC.
 int getCardPublicKeyId()
          Return the card's public key ID used during EAC.
 org.jmrtd.cert.CVCPrincipal getCAReference()
          Returns CA certificate's reference used during EAC.
 List<org.jmrtd.cert.CardVerifiableCertificate> getCVCertificates()
          Returns the chain of CVCertificates used to authenticate the terminal to the card.
 String getDocumentNumber()
          Returns the id of the card used during EAC.
 KeyPair getKeyPair()
          Returns the host key pair used for EAC chip authentication.
 PassportService getService()
           
 PrivateKey getTerminalKey()
          Returns the terminal private key used during EAC.
 SecureMessagingWrapper getWrapper()
          Gets the resulting wrapper.
 boolean isSuccess()
          Gets the status of the executed EAC protocol run.
 String toString()
           
 
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

EACEvent

public EACEvent(PassportService service,
                int keyId,
                PublicKey cardKey,
                KeyPair keyPair,
                org.jmrtd.cert.CVCPrincipal caReference,
                List<org.jmrtd.cert.CardVerifiableCertificate> terminalCertificates,
                PrivateKey terminalKey,
                String documentNumber,
                byte[] cardChallenge,
                boolean success)
Constructs a new event.

Parameters:
service - event source
keyPair - the ECDH key pair used for authenticating the chip
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 EAC protocol run.

Returns:
status of the EAC protocol run.

getKeyPair

public KeyPair getKeyPair()
Returns the host key pair used for EAC chip authentication.

Returns:
the host key pair used for EAC chip authentication

getCAReference

public org.jmrtd.cert.CVCPrincipal getCAReference()
Returns CA certificate's reference used during EAC.

Returns:
CA certificate's reference

getCVCertificates

public List<org.jmrtd.cert.CardVerifiableCertificate> getCVCertificates()
Returns the chain of CVCertificates used to authenticate the terminal to the card.

Returns:
the chain of CVCertificates used to authenticate the terminal to the card

getTerminalKey

public PrivateKey getTerminalKey()
Returns the terminal private key used during EAC.

Returns:
the terminal private key

getDocumentNumber

public String getDocumentNumber()
Returns the id of the card used during EAC.

Returns:
the id of the card

getCardChallenge

public byte[] getCardChallenge()
Return the card's challenge generated during EAC.

Returns:
the card's challenge

getCardPublicKey

public PublicKey getCardPublicKey()
Return the card's public key used during EAC.

Returns:
the card's public key

getCardPublicKeyId

public int getCardPublicKeyId()
Return the card's public key ID used during EAC.

Returns:
the card's public key ID

getService

public PassportService getService()

toString

public String toString()
Overrides:
toString in class EventObject

JMRTD 0.4.5