Package org.jmrtd.protocol
Class EACTAResult
- java.lang.Object
-
- org.jmrtd.protocol.EACTAResult
-
- All Implemented Interfaces:
Serializable
public class EACTAResult extends Object implements Serializable
Result of EAC Terminal Authentication protocol.- Version:
- $Revision: 1799 $
- Author:
- The JMRTD team ([email protected])
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EACTAResult(EACCAResult caResult, CVCPrincipal caReference, List<CardVerifiableCertificate> terminalCertificates, PrivateKey terminalKey, String documentNumber, byte[] cardChallenge)
Constructs a new terminal authentication result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
byte[]
getCardChallenge()
Returns the card's challenge generated during EAC.CVCPrincipal
getCAReference()
Returns CA certificate's reference used during EAC-TA.EACCAResult
getChipAuthenticationResult()
Returns the chip authentication result.List<CardVerifiableCertificate>
getCVCertificates()
Returns the chain of card verifiable certificates that is to be used for authenticating the PCD to the ICC.String
getDocumentNumber()
Returns the identifier of the card used during EAC.PrivateKey
getTerminalKey()
Returns the PCD's private key used during EAC.int
hashCode()
String
toString()
Returns a textual representation of this terminal authentication result.
-
-
-
Constructor Detail
-
EACTAResult
public EACTAResult(EACCAResult caResult, CVCPrincipal caReference, List<CardVerifiableCertificate> terminalCertificates, PrivateKey terminalKey, String documentNumber, byte[] cardChallenge)
Constructs a new terminal authentication result.- Parameters:
caResult
- the chip authentication resultcaReference
- the certificate authorityterminalCertificates
- terminal certificatesterminalKey
- the terminal's private keydocumentNumber
- the documentNumbercardChallenge
- the challenge
-
-
Method Detail
-
getChipAuthenticationResult
public EACCAResult getChipAuthenticationResult()
Returns the chip authentication result.- Returns:
- the chip authenticaiton result
-
getCAReference
public CVCPrincipal getCAReference()
Returns CA certificate's reference used during EAC-TA.- Returns:
- CA certificate's reference
-
getCVCertificates
public List<CardVerifiableCertificate> getCVCertificates()
Returns the chain of card verifiable certificates that is to be used for authenticating the PCD to the ICC.- Returns:
- the chain of CVCertificates used to authenticate the terminal to the card
-
getTerminalKey
public PrivateKey getTerminalKey()
Returns the PCD's private key used during EAC.- Returns:
- the PCD's private key
-
getDocumentNumber
public String getDocumentNumber()
Returns the identifier of the card used during EAC.- Returns:
- the id of the card
-
getCardChallenge
public byte[] getCardChallenge()
Returns the card's challenge generated during EAC.- Returns:
- the card's challenge
-
toString
public String toString()
Returns a textual representation of this terminal authentication result.
-
-