JMRTD 0.4.5

org.jmrtd.lds
Class ChipAuthenticationInfo

java.lang.Object
  extended by org.jmrtd.lds.SecurityInfo
      extended by org.jmrtd.lds.ChipAuthenticationInfo

public class ChipAuthenticationInfo
extends SecurityInfo

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.

Author:
Wojciech Mostowski (woj@cs.ru.nl) FIXME: dependency on BC?

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

VERSION_NUM

public static final int VERSION_NUM
See Also:
Constant Field Values
Constructor Detail

ChipAuthenticationInfo

public ChipAuthenticationInfo(String oid,
                              int version,
                              int keyId)
Constructs a new object.

Parameters:
oid - a proper EAC identifier
version - has to be 1
keyId - the key identifier

ChipAuthenticationInfo

public ChipAuthenticationInfo(String oid,
                              int version)
Constructs a new object.

Parameters:
oid - a proper EAC identifier
version - has to be 1
Method Detail

getDERObject

public DERObject getDERObject()
Description copied from class: SecurityInfo
Returns a DER object with this SecurityInfo data (DER sequence)

Returns:
a DER object with this SecurityInfo data

getObjectIdentifier

public String getObjectIdentifier()
Description copied from class: SecurityInfo
Returns the object identifier of this SecurityInfo

Specified by:
getObjectIdentifier in class SecurityInfo
Returns:
this SecurityInfo object identifier

getKeyId

public Integer getKeyId()
Returns a key identifier stored in this ChipAuthenticationInfo structure, null if not present

Returns:
key identifier stored in this ChipAuthenticationInfo structure

checkFields

protected void checkFields()
Checks the correctness of the data for this instance of SecurityInfo


toString

public String toString()
Overrides:
toString in class Object

JMRTD 0.4.5