Package org.jmrtd.protocol
Class PACEGMWithDHMappingResult
- java.lang.Object
-
- org.jmrtd.protocol.PACEMappingResult
-
- org.jmrtd.protocol.PACEGMMappingResult
-
- org.jmrtd.protocol.PACEGMWithDHMappingResult
-
- All Implemented Interfaces:
Serializable
public class PACEGMWithDHMappingResult extends PACEGMMappingResult
The result of the PACE nonce mapping step in Generic Mapping with Diffie-Hellman setting.- Version:
- $Revision: $
- Author:
- The JMRTD team ([email protected])
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PACEGMWithDHMappingResult(AlgorithmParameterSpec staticParameters, byte[] piccNonce, PublicKey piccMappingPublicKey, KeyPair pcdMappingKeyPair, byte[] sharedSecret, AlgorithmParameterSpec ephemeralParameters)
Constructs a result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
byte[]
getSharedSecret()
Returns the shared secret that was derived during this protocol step.int
hashCode()
-
Methods inherited from class org.jmrtd.protocol.PACEGMMappingResult
getPCDMappingKeyPair, getPICCMappingPublicKey
-
Methods inherited from class org.jmrtd.protocol.PACEMappingResult
getEphemeralParameters, getPICCNonce, getStaticParameters
-
-
-
-
Constructor Detail
-
PACEGMWithDHMappingResult
public PACEGMWithDHMappingResult(AlgorithmParameterSpec staticParameters, byte[] piccNonce, PublicKey piccMappingPublicKey, KeyPair pcdMappingKeyPair, byte[] sharedSecret, 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 PCDsharedSecret
- the shared secret that was derivedephemeralParameters
- the ephemeral parameters that were derived
-
-
Method Detail
-
getSharedSecret
public byte[] getSharedSecret()
Returns the shared secret that was derived during this protocol step.- Returns:
- the shared secret
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classPACEGMMappingResult
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classPACEGMMappingResult
-
-