public class ChipAuthenticationInfo extends SecurityInfo
protocol
SHALL identify the
algorithms to be used (i.e. key agreement, symmetric cipher and MAC).version
SHALL identify the version of the protocol.
Currently, versions 1 and 2 are supported.keyId
MAY be used to indicate the local key identifier.
It MUST be used if the MRTD chip provides multiple public keys for Chip
Authentication.Modifier and Type | Field and Description |
---|---|
static int |
VERSION_NUM |
ID_AA_OID, ID_CA_DH_3DES_CBC_CBC_OID, ID_CA_DH_AES_CBC_CMAC_128_OID, ID_CA_DH_AES_CBC_CMAC_192_OID, ID_CA_DH_AES_CBC_CMAC_256_OID, ID_CA_ECDH_3DES_CBC_CBC_OID, ID_CA_ECDH_AES_CBC_CMAC_128_OID, ID_CA_ECDH_AES_CBC_CMAC_192_OID, ID_CA_ECDH_AES_CBC_CMAC_256_OID, ID_EC_PUBLIC_KEY, ID_EC_PUBLIC_KEY_TYPE, ID_PACE, ID_PACE_DH_GM, ID_PACE_DH_GM_3DES_CBC_CBC, ID_PACE_DH_GM_AES_CBC_CMAC_128, ID_PACE_DH_GM_AES_CBC_CMAC_192, ID_PACE_DH_GM_AES_CBC_CMAC_256, ID_PACE_DH_IM, ID_PACE_DH_IM_3DES_CBC_CBC, ID_PACE_DH_IM_AES_CBC_CMAC_128, ID_PACE_DH_IM_AES_CBC_CMAC_192, ID_PACE_DH_IM_AES_CBC_CMAC_256, ID_PACE_ECDH_GM, ID_PACE_ECDH_GM_3DES_CBC_CBC, ID_PACE_ECDH_GM_AES_CBC_CMAC_128, ID_PACE_ECDH_GM_AES_CBC_CMAC_192, ID_PACE_ECDH_GM_AES_CBC_CMAC_256, ID_PACE_ECDH_IM, ID_PACE_ECDH_IM_3DES_CBC_CBC, ID_PACE_ECDH_IM_AES_CBC_CMAC_128, ID_PACE_ECDH_IM_AES_CBC_CMAC_192, ID_PACE_ECDH_IM_AES_CBC_CMAC_256, ID_PK_DH_OID, ID_PK_ECDH_OID, ID_TA_OID
Constructor and Description |
---|
ChipAuthenticationInfo(java.lang.String oid,
int version)
Constructs a new object.
|
ChipAuthenticationInfo(java.lang.String oid,
int version,
java.math.BigInteger keyId)
Constructs a new object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkFields()
Checks the correctness of the data for this instance of SecurityInfo
|
boolean |
equals(java.lang.Object other) |
byte[] |
getEncoded()
Gets the encoded contents of this LDS info.
|
java.math.BigInteger |
getKeyId()
Returns a key identifier stored in this ChipAuthenticationInfo structure, null
if not present
|
java.lang.String |
getObjectIdentifier()
Returns the object identifier of this SecurityInfo.
|
int |
hashCode() |
java.lang.String |
toString() |
lookupMnemonicByOID, writeObject
public static final int VERSION_NUM
public ChipAuthenticationInfo(java.lang.String oid, int version, java.math.BigInteger keyId)
oid
- a proper EAC identifierversion
- has to be 1keyId
- the key identifierpublic ChipAuthenticationInfo(java.lang.String oid, int version)
oid
- a proper EAC identifierversion
- has to be 1public java.lang.String getObjectIdentifier()
SecurityInfo
getObjectIdentifier
in class SecurityInfo
public java.math.BigInteger getKeyId()
protected void checkFields()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public byte[] getEncoded()
LDSElement
getEncoded
in interface LDSElement