public class ChipAuthenticationPublicKeyInfo extends SecurityInfo
protocol
SHALL identify the type of the public key
(i.e. DH or ECDH).chipAuthenticationPublicKey
SHALL contain the public key
in encoded form.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.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_CAM, ID_PACE_ECDH_CAM_AES_CBC_CMAC_128, ID_PACE_ECDH_CAM_AES_CBC_CMAC_192, ID_PACE_ECDH_CAM_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 |
---|
ChipAuthenticationPublicKeyInfo(PublicKey publicKey)
Creates a public key info structure.
|
ChipAuthenticationPublicKeyInfo(PublicKey publicKey,
BigInteger keyId)
Creates a public key info structure.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkFields()
Checks the correctness of the data for this instance of SecurityInfo
|
static boolean |
checkRequiredIdentifier(String oid)
Checks whether the given object identifier identifies a
ChipAuthenticationPublicKeyInfo structure.
|
boolean |
equals(Object other) |
org.bouncycastle.asn1.ASN1Primitive |
getDERObject()
Deprecated.
|
BigInteger |
getKeyId()
Returns a key identifier stored in this ChipAuthenticationPublicKeyInfo
structure, null if not present
|
String |
getObjectIdentifier()
Returns the object identifier of this SecurityInfo.
|
PublicKey |
getSubjectPublicKey()
Returns a SubjectPublicKeyInfo contained in this
ChipAuthenticationPublicKeyInfo structure.
|
int |
hashCode() |
String |
toString() |
getInstance, lookupMnemonicByOID, writeObject
getEncoded
public ChipAuthenticationPublicKeyInfo(PublicKey publicKey, BigInteger keyId)
publicKey
- Either a DH public key or an EC public keykeyId
- key identifierpublic ChipAuthenticationPublicKeyInfo(PublicKey publicKey)
publicKey
- Either a DH public key or an EC public key@Deprecated public org.bouncycastle.asn1.ASN1Primitive getDERObject()
SecurityInfo
getDERObject
in class SecurityInfo
public String getObjectIdentifier()
SecurityInfo
getObjectIdentifier
in class SecurityInfo
public BigInteger getKeyId()
public PublicKey getSubjectPublicKey()
protected void checkFields()
public static boolean checkRequiredIdentifier(String oid)
oid
- object identifierCopyright © 2016. All rights reserved.