JMRTD 0.4.5

org.jmrtd.lds
Class DG15File

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

public class DG15File
extends DataGroup

File structure for the EF_DG15 file. Datagroup 15 contains the public key used in AA.

Version:
$Revision: 1208 $
Author:
Cees-Bart Breunesse (ceesb@cs.ru.nl), 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
DG15File(InputStream in)
           
DG15File(PublicKey publicKey)
          Constructs a new file.
 
Method Summary
 boolean equals(Object obj)
           
 byte[] getEncoded()
          Gets the contents of this file as byte array, includes the ICAO tag and length.
 PublicKey getPublicKey()
          Gets the public key stored in this file.
 int getTag()
          The data group tag.
 int hashCode()
           
 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, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DG15File

public DG15File(PublicKey publicKey)
Constructs a new file.

Parameters:
publicKey - the key to store in this file

DG15File

public DG15File(InputStream in)
Method Detail

getEncoded

public byte[] getEncoded()
Description copied from class: PassportFile
Gets the contents of this file as byte array, includes the ICAO tag and length.

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

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

getPublicKey

public PublicKey getPublicKey()
Gets the public key stored in this file.

Returns:
the public key

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

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

JMRTD 0.4.5