Class PACECAMResult

    • Constructor Detail

      • PACECAMResult

        public PACECAMResult​(AccessKeySpec paceKey,
                             String agreementAlg,
                             String cipherAlg,
                             String digestAlg,
                             int keyLength,
                             PACEMappingResult mappingResult,
                             KeyPair pcdKeyPair,
                             PublicKey piccPublicKey,
                             byte[] encryptedChipAuthenticationData,
                             byte[] chipAuthenticationData,
                             SecureMessagingWrapper wrapper)
        Constructs a result.
        Parameters:
        paceKey - the static PACE key (derived from MRZ, CAN, PIN, or PUK)
        agreementAlg - the agreement algorithm that was used
        cipherAlg - the cipher algorithm that was used
        digestAlg - the digest algorithm that was used
        keyLength - the key length that was used
        mappingResult - the result from the mapping step
        pcdKeyPair - the key-pair generated by the PCD
        piccPublicKey - the public key sent by the chip
        encryptedChipAuthenticationData - the encrypted Chip Authentication data sent by the PICC
        chipAuthenticationData - the decrypted Chip Authentication data
        wrapper - the secure messaging wrapper that resulted
    • Method Detail

      • getEncryptedChipAuthenticationData

        public byte[] getEncryptedChipAuthenticationData()
        Returns the encrypted Chip Authentication data.
        Returns:
        the encrypted Chip Authentication data
      • getChipAuthenticationData

        public byte[] getChipAuthenticationData()
        Returns the result of decrypting the encrypted Chip Authentication data.
        Returns:
        the decrypted Chip Authentication data
      • toString

        public String toString()
        Description copied from class: PACEResult
        Returns a textual representation of this PACE result.
        Overrides:
        toString in class PACEResult
        Returns:
        a textual representation of this PACE result