Class EACCAResult

    • Constructor Detail

      • EACCAResult

        public EACCAResult​(BigInteger keyId,
                           PublicKey piccPublicKey,
                           byte[] keyHash,
                           PublicKey pcdPublicKey,
                           PrivateKey pcdPrivateKey,
                           SecureMessagingWrapper wrapper)
        Creates a result.
        Parameters:
        keyId - the key identifier of the ICC's public key or null
        piccPublicKey - the ICC's public key
        keyHash - the hash of the PCD's public key
        pcdPublicKey - the public key of the terminal
        pcdPrivateKey - the private key of the terminal
        wrapper - secure messaging wrapper
    • Method Detail

      • getKeyId

        public BigInteger getKeyId()
        Returns the ICC's public key identifier.
        Returns:
        the key id or -1
      • getPublicKey

        public PublicKey getPublicKey()
        Returns the PICC's public key that was used as input to chip authentication protocol.
        Returns:
        the public key
      • getWrapper

        public SecureMessagingWrapper getWrapper()
        Returns the resulting secure messaging wrapper.
        Returns:
        the secure messaging wrapper
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getKeyHash

        public byte[] getKeyHash()
        Returns the hash of the ephemeral public key of the terminal.
        Returns:
        the hash of the ephemeral public key of the terminal
      • getPCDPublicKey

        public PublicKey getPCDPublicKey()
        Returns the ephemeral public key of the terminal that was used in the key exchange.
        Returns:
        the public key
      • getPCDPrivateKey

        public PrivateKey getPCDPrivateKey()
        The ephemeral private key of the terminal that was used in the key exchange.
        Returns:
        the private key