JMRTD 0.4.5

org.jmrtd.lds
Class DG12File

java.lang.Object
  extended by org.jmrtd.lds.PassportFile
      extended by org.jmrtd.lds.DataGroup
          extended by org.jmrtd.lds.DG12File

public class DG12File
extends DataGroup

File structure for the EF_DG12 file. Datagroup 12 contains additional document detail(s).

Version:
$Revision: 1214 $
Author:
Martijn Oostdijk (martijn.oostdijk@gmail.com)

Field Summary
 
Fields inherited from class org.jmrtd.lds.PassportFile
EF_COM_TAG, EF_DG1_TAG, EF_DG10_TAG, EF_DG11_TAG, EF_DG12_TAG, EF_DG13_TAG, EF_DG14_TAG, EF_DG15_TAG, EF_DG16_TAG, EF_DG2_TAG, EF_DG3_TAG, EF_DG4_TAG, EF_DG5_TAG, EF_DG6_TAG, EF_DG7_TAG, EF_DG8_TAG, EF_DG9_TAG, EF_SOD_TAG
 
Constructor Summary
DG12File(InputStream in)
          Constructs a new file.
DG12File(String issuingAuthority, Date dateOfIssue, String nameOfOtherPerson, String endorseMentsAndObservations, String taxOrExitRequirements, BufferedImage imageOfFront, BufferedImage imageOfRear, Date dateAndTimeOfPersonalization, String personalizationSystemSerialNumber)
          Constructs a new file.
 
Method Summary
 Date getDateAndTimeOfPersonalization()
           
 Date getDateOfIssue()
           
 byte[] getEncoded()
          TODO: in progress.
 String getEndorseMentsAndObservations()
           
 BufferedImage getImageOfFront()
           
 BufferedImage getImageOfRear()
           
 String getIssuingAuthority()
           
 String getNameOfOtherPerson()
           
 String getPersonalizationSystemSerialNumber()
           
 int getTag()
          The data group tag.
 String getTaxOrExitRequirements()
           
 String toString()
          Gets a textual representation of this file.
 
Methods inherited from class org.jmrtd.lds.DataGroup
getLength
 
Methods inherited from class org.jmrtd.lds.PassportFile
createPassportFile, lookupDataGroupNumberByTag, lookupFIDByDataGroupNumber, lookupFIDByTag, lookupTagByDataGroupNumber, lookupTagByFID, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DG12File

public DG12File(String issuingAuthority,
                Date dateOfIssue,
                String nameOfOtherPerson,
                String endorseMentsAndObservations,
                String taxOrExitRequirements,
                BufferedImage imageOfFront,
                BufferedImage imageOfRear,
                Date dateAndTimeOfPersonalization,
                String personalizationSystemSerialNumber)
Constructs a new file.

Parameters:
issuingAuthority -
dateOfIssue -
nameOfOtherPerson -
endorseMentsAndObservations -
taxOrExitRequirements -
imageOfFront -
imageOfRear -
dateAndTimeOfPersonalization -
personalizationSystemSerialNumber -

DG12File

public DG12File(InputStream in)
         throws IOException
Constructs a new file.

Parameters:
in -
Throws:
IOException
Method Detail

getIssuingAuthority

public String getIssuingAuthority()
Returns:
the issuingAuthority

getDateOfIssue

public Date getDateOfIssue()
Returns:
the dateOfIssue

getNameOfOtherPerson

public String getNameOfOtherPerson()
Returns:
the nameOfOtherPerson

getEndorseMentsAndObservations

public String getEndorseMentsAndObservations()
Returns:
the endorseMentsAndObservations

getTaxOrExitRequirements

public String getTaxOrExitRequirements()
Returns:
the taxOrExitRequirements

getImageOfFront

public BufferedImage getImageOfFront()
Returns:
the imageOfFront

getImageOfRear

public BufferedImage getImageOfRear()
Returns:
the imageOfRear

getDateAndTimeOfPersonalization

public Date getDateAndTimeOfPersonalization()
Returns:
the dateAndTimeOfPersonalization

getPersonalizationSystemSerialNumber

public String getPersonalizationSystemSerialNumber()
Returns:
the personalizationSystemSerialNumber

getTag

public int getTag()
Description copied from class: DataGroup
The data group tag.

Overrides:
getTag in class DataGroup
Returns:
the tag of the data group

toString

public String toString()
Description copied from class: DataGroup
Gets a textual representation of this file.

Overrides:
toString in class DataGroup
Returns:
a textual representation of this file

getEncoded

public byte[] getEncoded()
TODO: in progress.

Specified by:
getEncoded in class DataGroup
Returns:
a byte array containing the file

JMRTD 0.4.5