Package org.jmrtd.protocol
Class EACTAResult
- java.lang.Object
-
- org.jmrtd.protocol.EACTAResult
-
- All Implemented Interfaces:
java.io.Serializable
public class EACTAResult extends java.lang.Object implements java.io.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, java.util.List<CardVerifiableCertificate> terminalCertificates, java.security.PrivateKey terminalKey, java.lang.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(java.lang.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.java.util.List<CardVerifiableCertificate>
getCVCertificates()
Returns the chain of card verifiable certificates that is to be used for authenticating the PCD to the ICC.java.lang.String
getDocumentNumber()
Returns the identifier of the card used during EAC.java.security.PrivateKey
getTerminalKey()
Returns the PCD's private key used during EAC.int
hashCode()
java.lang.String
toString()
Returns a textual representation of this terminal authentication result.
-
-
-
Constructor Detail
-
EACTAResult
public EACTAResult(EACCAResult caResult, CVCPrincipal caReference, java.util.List<CardVerifiableCertificate> terminalCertificates, java.security.PrivateKey terminalKey, java.lang.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 java.util.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 java.security.PrivateKey getTerminalKey()
Returns the PCD's private key used during EAC.- Returns:
- the PCD's private key
-
getDocumentNumber
public java.lang.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 java.lang.String toString()
Returns a textual representation of this terminal authentication result.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a textual representation of this terminal authentication result
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-