JMRTD 0.4.5

org.jmrtd.lds
Class TerminalAuthenticationInfo

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

public class TerminalAuthenticationInfo
extends SecurityInfo

A concrete SecurityInfo structure that stores terminal authentication info, see EAC 1.11 specification. This data structure provides detailed information on an implementation of Terminal Authentication.

Version:
$Revision: $
Author:
Wojciech Mostowski (woj@cs.ru.nl)

Field Summary
static int VERSION_NUM
           
 
Constructor Summary
TerminalAuthenticationInfo(Integer fileId, Integer shortFileId)
          Constructs a new object with the required object identifier and version number and:
TerminalAuthenticationInfo(String identifier, int version)
          Constructs a new object.
TerminalAuthenticationInfo(String oid, int version, DERSequence efCVCA)
          Constructs a new object.
 
Method Summary
static boolean checkRequiredIdentifier(String id)
          Checks whether the given object identifier identifies a TerminalAuthenticationInfo structure.
 DERObject getDERObject()
          Returns a DER object with this SecurityInfo data (DER sequence)
 int getFileID()
          Returns the efCVCA file identifier stored in this file, -1 if none
 String getObjectIdentifier()
          Returns the object identifier of this SecurityInfo
 byte getShortFileID()
          Returns the efCVCA short file identifier stored in this file, -1 if none or not present
 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

TerminalAuthenticationInfo

public TerminalAuthenticationInfo(String oid,
                                  int version,
                                  DERSequence efCVCA)
Constructs a new object.

Parameters:
oid - the id_TA identifier
version - has to be 1
efCVCA - the file ID information of the efCVCA file

TerminalAuthenticationInfo

public TerminalAuthenticationInfo(String identifier,
                                  int version)
Constructs a new object.

Parameters:
identifier - the id_TA identifier
version - has to be 1

TerminalAuthenticationInfo

public TerminalAuthenticationInfo(Integer fileId,
                                  Integer shortFileId)
Constructs a new object with the required object identifier and version number and:

Parameters:
fileId - a file identifier reference to the efCVCA file
shortFileId - short file id for the above file, -1 if none
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

getFileID

public int getFileID()
Returns the efCVCA file identifier stored in this file, -1 if none

Returns:
the efCVCA file identifier stored in this file

checkRequiredIdentifier

public static boolean checkRequiredIdentifier(String id)
Checks whether the given object identifier identifies a TerminalAuthenticationInfo structure.

Parameters:
id - object identifier
Returns:
true if the match is positive

getShortFileID

public byte getShortFileID()
Returns the efCVCA short file identifier stored in this file, -1 if none or not present

Returns:
the efCVCA short file identifier stored in this file

toString

public String toString()
Overrides:
toString in class Object

JMRTD 0.4.5