Package org.jmrtd.protocol
Class PACEResult
- java.lang.Object
-
- org.jmrtd.protocol.PACEResult
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PACECAMResult
public class PACEResult extends Object implements Serializable
Result of PACE protocol.- Version:
- $Revision: 1763 $
- Author:
- The JMRTD team ([email protected])
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getAgreementAlg()
Returns the agreement algorithm that was used in the PACE protocol run.String
getCipherAlg()
Returns the cipher algorithm that was reported in the PACE info.String
getDigestAlg()
Returns the digest algorithm that was reported in the PACE info.int
getKeyLength()
Returns the key length that was reported in the PACE info.PACEMappingResult
getMappingResult()
Returns the mapping result.PACEInfo.MappingType
getMappingType()
Returns the mapping type.AccessKeySpec
getPACEKey()
Returns the access key that was used.KeyPair
getPCDKeyPair()
Returns the ephemeral key pair that was generated by the terminal.PublicKey
getPICCPublicKey()
Returns the public key that was sent by the ICC (the chip).SecureMessagingWrapper
getWrapper()
Returns the secure messaging wrapper that was created after completion of the PACE protocol run.int
hashCode()
String
toString()
Returns a textual representation of this PACE result.
-
-
-
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 keymappingType
- the mapping type,GM
,IM
, orCAM
agreementAlg
- the agreement algorithm,"DH"
or"ECDH"
cipherAlg
- the cipher algorithmdigestAlg
- the digest algorithmkeyLength
- the key lengthmappingResult
- the result of the mapping steppcdKeyPair
- the key pair generated by the PCDpiccPublicKey
- the public key sent by the PICCwrapper
- 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.
-
-