Package org.jmrtd.protocol
Class PACECAMResult
- java.lang.Object
-
- org.jmrtd.protocol.PACEResult
-
- org.jmrtd.protocol.PACECAMResult
-
- All Implemented Interfaces:
Serializable
public class PACECAMResult extends PACEResult
The result of a PACE-CAM protocol execution.- Version:
- $Revision: $
- Author:
- The JMRTD team ([email protected])
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
byte[]
getChipAuthenticationData()
Returns the result of decrypting the encrypted Chip Authentication data.byte[]
getEncryptedChipAuthenticationData()
Returns the encrypted Chip Authentication data.int
hashCode()
String
toString()
Returns a textual representation of this PACE result.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from class org.jmrtd.protocol.PACEResult
getAgreementAlg, getCipherAlg, getDigestAlg, getKeyLength, getMappingResult, getMappingType, getPACEKey, getPCDKeyPair, getPICCPublicKey, getWrapper
-
-
-
-
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 usedcipherAlg
- the cipher algorithm that was useddigestAlg
- the digest algorithm that was usedkeyLength
- the key length that was usedmappingResult
- the result from the mapping steppcdKeyPair
- the key-pair generated by the PCDpiccPublicKey
- the public key sent by the chipencryptedChipAuthenticationData
- the encrypted Chip Authentication data sent by the PICCchipAuthenticationData
- the decrypted Chip Authentication datawrapper
- 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
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classPACEResult
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classPACEResult
-
toString
public String toString()
Description copied from class:PACEResult
Returns a textual representation of this PACE result.- Overrides:
toString
in classPACEResult
- Returns:
- a textual representation of this PACE result
-
-