Class 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 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 result
        caReference - the certificate authority
        terminalCertificates - terminal certificates
        terminalKey - the terminal's private key
        documentNumber - the documentNumber
        cardChallenge - 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 class java.lang.Object
        Returns:
        a textual representation of this terminal authentication result
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object