Class EACTAResult

    • 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 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 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.
        Overrides:
        toString in class Object
        Returns:
        a textual representation of this terminal authentication result
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object