Package org.jmrtd.protocol
Class EACCAResult
- java.lang.Object
-
- org.jmrtd.protocol.EACCAResult
-
- All Implemented Interfaces:
Serializable
public class EACCAResult extends Object implements Serializable
Result of EAC Chip Authentication protocol.- Version:
- $Revision: 1799 $
- Author:
- The JMRTD team ([email protected])
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EACCAResult(BigInteger keyId, PublicKey piccPublicKey, byte[] keyHash, PublicKey pcdPublicKey, PrivateKey pcdPrivateKey, SecureMessagingWrapper wrapper)
Creates a result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
byte[]
getKeyHash()
Returns the hash of the ephemeral public key of the terminal.BigInteger
getKeyId()
Returns the ICC's public key identifier.PrivateKey
getPCDPrivateKey()
The ephemeral private key of the terminal that was used in the key exchange.PublicKey
getPCDPublicKey()
Returns the ephemeral public key of the terminal that was used in the key exchange.PublicKey
getPublicKey()
Returns the PICC's public key that was used as input to chip authentication protocol.SecureMessagingWrapper
getWrapper()
Returns the resulting secure messaging wrapper.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
EACCAResult
public EACCAResult(BigInteger keyId, PublicKey piccPublicKey, byte[] keyHash, PublicKey pcdPublicKey, PrivateKey pcdPrivateKey, SecureMessagingWrapper wrapper)
Creates a result.- Parameters:
keyId
- the key identifier of the ICC's public key ornull
piccPublicKey
- the ICC's public keykeyHash
- the hash of the PCD's public keypcdPublicKey
- the public key of the terminalpcdPrivateKey
- the private key of the terminalwrapper
- secure messaging wrapper
-
-
Method Detail
-
getKeyId
public BigInteger getKeyId()
Returns the ICC's public key identifier.- Returns:
- the key id or -1
-
getPublicKey
public PublicKey getPublicKey()
Returns the PICC's public key that was used as input to chip authentication protocol.- Returns:
- the public key
-
getWrapper
public SecureMessagingWrapper getWrapper()
Returns the resulting secure messaging wrapper.- Returns:
- the secure messaging wrapper
-
getKeyHash
public byte[] getKeyHash()
Returns the hash of the ephemeral public key of the terminal.- Returns:
- the hash of the ephemeral public key of the terminal
-
getPCDPublicKey
public PublicKey getPCDPublicKey()
Returns the ephemeral public key of the terminal that was used in the key exchange.- Returns:
- the public key
-
getPCDPrivateKey
public PrivateKey getPCDPrivateKey()
The ephemeral private key of the terminal that was used in the key exchange.- Returns:
- the private key
-
-