Package org.jmrtd.protocol
Class PACEGMMappingResult
- java.lang.Object
-
- org.jmrtd.protocol.PACEMappingResult
-
- org.jmrtd.protocol.PACEGMMappingResult
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PACEGMWithDHMappingResult
,PACEGMWithECDHMappingResult
public abstract class PACEGMMappingResult extends PACEMappingResult
The result of the PACE nonce mapping step in Generic Mapping setting.- Version:
- $Revision: $
- Author:
- The JMRTD team ([email protected])
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PACEGMMappingResult(AlgorithmParameterSpec staticParameters, byte[] piccNonce, PublicKey piccMappingPublicKey, KeyPair pcdMappingKeyPair, AlgorithmParameterSpec ephemeralParameters)
Constructs a result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
KeyPair
getPCDMappingKeyPair()
Returns the key-pair generated by the PCD.PublicKey
getPICCMappingPublicKey()
Returns the public key that was sent by the PICC.int
hashCode()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class org.jmrtd.protocol.PACEMappingResult
getEphemeralParameters, getPICCNonce, getStaticParameters
-
-
-
-
Constructor Detail
-
PACEGMMappingResult
public PACEGMMappingResult(AlgorithmParameterSpec staticParameters, byte[] piccNonce, PublicKey piccMappingPublicKey, KeyPair pcdMappingKeyPair, AlgorithmParameterSpec ephemeralParameters)
Constructs a result.- Parameters:
staticParameters
- the static parameterspiccNonce
- the nonce that was sent by the PICCpiccMappingPublicKey
- the mapping public key sent by the PICCpcdMappingKeyPair
- the key-pair generated by the PCDephemeralParameters
- the ephemeral parameters that were derived
-
-
Method Detail
-
getPICCMappingPublicKey
public PublicKey getPICCMappingPublicKey()
Returns the public key that was sent by the PICC.- Returns:
- the PICC's public key
-
getPCDMappingKeyPair
public KeyPair getPCDMappingKeyPair()
Returns the key-pair generated by the PCD.- Returns:
- the PCD's key-pair
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classPACEMappingResult
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classPACEMappingResult
-
-