Class PACEResult

    • Constructor Detail

      • PACEResult

        public PACEResult​(AccessKeySpec paceKey,
                          PACEInfo.MappingType mappingType,
                          String agreementAlg,
                          String cipherAlg,
                          String digestAlg,
                          int keyLength,
                          PACEMappingResult mappingResult,
                          KeyPair pcdKeyPair,
                          PublicKey piccPublicKey,
                          SecureMessagingWrapper wrapper)
        The result of a PACE protocol run.
        Parameters:
        paceKey - the access key
        mappingType - the mapping type, GM, IM, or CAM
        agreementAlg - the agreement algorithm, "DH" or "ECDH"
        cipherAlg - the cipher algorithm
        digestAlg - the digest algorithm
        keyLength - the key length
        mappingResult - the result of the mapping step
        pcdKeyPair - the key pair generated by the PCD
        piccPublicKey - the public key sent by the PICC
        wrapper - the resulting secure messaging wrapper
    • Method Detail

      • getPACEKey

        public AccessKeySpec getPACEKey()
        Returns the access key that was used.
        Returns:
        the PACE key
      • getMappingResult

        public PACEMappingResult getMappingResult()
        Returns the mapping result.
        Returns:
        the mapping result
      • getWrapper

        public SecureMessagingWrapper getWrapper()
        Returns the secure messaging wrapper that was created after completion of the PACE protocol run.
        Returns:
        the secure messaging wrapper that was created after completion of the PACE protocol run
      • getMappingType

        public PACEInfo.MappingType getMappingType()
        Returns the mapping type.
        Returns:
        the mapping type
      • getAgreementAlg

        public String getAgreementAlg()
        Returns the agreement algorithm that was used in the PACE protocol run.
        Returns:
        the agreement algorithm that was used in the PACE protocol run
      • getCipherAlg

        public String getCipherAlg()
        Returns the cipher algorithm that was reported in the PACE info.
        Returns:
        the cipher algorithm
      • getDigestAlg

        public String getDigestAlg()
        Returns the digest algorithm that was reported in the PACE info.
        Returns:
        the digest algorithm
      • getKeyLength

        public int getKeyLength()
        Returns the key length that was reported in the PACE info.
        Returns:
        the key length
      • getPCDKeyPair

        public KeyPair getPCDKeyPair()
        Returns the ephemeral key pair that was generated by the terminal.
        Returns:
        the ephemeral key pair that was generated by the terminal
      • getPICCPublicKey

        public PublicKey getPICCPublicKey()
        Returns the public key that was sent by the ICC (the chip).
        Returns:
        the public key that was sent by the ICC
      • toString

        public String toString()
        Returns a textual representation of this PACE result.
        Overrides:
        toString in class Object
        Returns:
        a textual representation of this PACE result
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object