|
JMRTD 0.4.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jmrtd.lds.SecurityInfo
org.jmrtd.lds.ChipAuthenticationPublicKeyInfo
public class ChipAuthenticationPublicKeyInfo
A concrete SecurityInfo structure that stores chip authentication public key info, see EAC 1.11 specification. This data structure provides a Chip Authentication Public Key of the MRTD chip.
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.
| Constructor Summary | |
|---|---|
ChipAuthenticationPublicKeyInfo(PublicKey publicKey)
|
|
ChipAuthenticationPublicKeyInfo(PublicKey publicKey,
int keyId)
Creates a public key info structure. |
|
| Method Summary | |
|---|---|
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. |
DERObject |
getDERObject()
Returns a DER object with this SecurityInfo data (DER sequence) |
int |
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. |
String |
toString()
|
| Methods inherited from class org.jmrtd.lds.SecurityInfo |
|---|
lookupMnemonicByOID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ChipAuthenticationPublicKeyInfo(PublicKey publicKey,
int keyId)
publicKey - Either a DH public key or an EC public keykeyId - public ChipAuthenticationPublicKeyInfo(PublicKey publicKey)
| Method Detail |
|---|
public DERObject getDERObject()
SecurityInfo
public String getObjectIdentifier()
SecurityInfo
getObjectIdentifier in class SecurityInfopublic int getKeyId()
public PublicKey getSubjectPublicKey()
protected void checkFields()
public static boolean checkRequiredIdentifier(String oid)
oid - object identifier
public String toString()
toString in class Object
|
JMRTD 0.4.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||