|
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.ChipAuthenticationInfo
public class ChipAuthenticationInfo
A concrete SecurityInfo structure that stores chip authentication info, see EAC 1.11 specification. This data structure provides detailed information on an implementation of Chip Authentication.
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.
| Field Summary | |
|---|---|
static int |
VERSION_NUM
|
| Constructor Summary | |
|---|---|
ChipAuthenticationInfo(String oid,
int version)
Constructs a new object. |
|
ChipAuthenticationInfo(String oid,
int version,
int keyId)
Constructs a new object. |
|
| Method Summary | |
|---|---|
protected void |
checkFields()
Checks the correctness of the data for this instance of SecurityInfo |
DERObject |
getDERObject()
Returns a DER object with this SecurityInfo data (DER sequence) |
Integer |
getKeyId()
Returns a key identifier stored in this ChipAuthenticationInfo structure, null if not present |
String |
getObjectIdentifier()
Returns the object identifier of this SecurityInfo |
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 |
| Field Detail |
|---|
public static final int VERSION_NUM
| Constructor Detail |
|---|
public ChipAuthenticationInfo(String oid,
int version,
int keyId)
oid - a proper EAC identifierversion - has to be 1keyId - the key identifier
public ChipAuthenticationInfo(String oid,
int version)
oid - a proper EAC identifierversion - has to be 1| Method Detail |
|---|
public DERObject getDERObject()
SecurityInfo
public String getObjectIdentifier()
SecurityInfo
getObjectIdentifier in class SecurityInfopublic Integer getKeyId()
protected void checkFields()
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 | ||||||||