Package org.jmrtd.protocol
Class PACEMappingResult
- java.lang.Object
-
- org.jmrtd.protocol.PACEMappingResult
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PACEGMMappingResult
,PACEIMMappingResult
public abstract class PACEMappingResult extends Object implements Serializable
The result of a the nonce mapping step. This is the abstract super type, specific implementations will contain more relevant details.- Version:
- $Revision: $
- Author:
- The JMRTD team ([email protected])
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PACEMappingResult(AlgorithmParameterSpec staticParameters, byte[] piccNonce, AlgorithmParameterSpec ephemeralParameters)
Constructs a mapping result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
AlgorithmParameterSpec
getEphemeralParameters()
Returns the ephemeral (derived) agreement parameters.byte[]
getPICCNonce()
Returns the nonce that was sent by the PICC.AlgorithmParameterSpec
getStaticParameters()
Returns the static agreement parameters.int
hashCode()
-
-
-
Constructor Detail
-
PACEMappingResult
public PACEMappingResult(AlgorithmParameterSpec staticParameters, byte[] piccNonce, AlgorithmParameterSpec ephemeralParameters)
Constructs a mapping result.- Parameters:
staticParameters
- the static agreement parameterspiccNonce
- the nonce that was sent by the PICCephemeralParameters
- the resulting ephemeral parameters
-
-
Method Detail
-
getStaticParameters
public AlgorithmParameterSpec getStaticParameters()
Returns the static agreement parameters.- Returns:
- the original parameters
-
getEphemeralParameters
public AlgorithmParameterSpec getEphemeralParameters()
Returns the ephemeral (derived) agreement parameters.- Returns:
- the resulting parameters
-
getPICCNonce
public byte[] getPICCNonce()
Returns the nonce that was sent by the PICC.- Returns:
- the nonce
-
-