JMRTD 0.4.5

net.sourceforge.scuba.smartcards
Class ISOFileInfo

java.lang.Object
  extended by net.sourceforge.scuba.smartcards.FileInfo
      extended by net.sourceforge.scuba.smartcards.ISOFileInfo

public class ISOFileInfo
extends FileInfo

TODO: Work in progess, very messy at the moment.

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

Field Summary
static byte A0
           
static byte A1
           
static byte A2
           
static byte A5
           
static byte AB
           
static byte AC
           
static byte CHANNEL_SECURITY
           
static byte DATA_BYTES1
           
static byte DATA_BYTES2
           
static byte DF_NAME
           
static byte ENV_TEMP_EF
           
static byte FCI_BYTE
          This class reflects the File Control Parameters included in the FCI as described in ISO7816-4 in Table 12
static byte FCI_EXT
           
static byte FCP_BYTE
           
static byte FILE_DESCRIPTOR
           
static byte FILE_IDENTIFIER
           
static byte FMD_BYTE
           
static byte LCS_BYTE
           
static byte PROP_INFO
           
static byte SECURITY_ATTR_COMPACT
           
static byte SECURITY_ATTR_EXP
           
static byte SECURITY_ATTR_PROP
           
static byte SHORT_EF
           
 
Constructor Summary
ISOFileInfo(byte[] fileInfo)
           
 
Method Summary
 short getFID()
          Returns the file length of the file.
 int getFileLength()
          Returns the file length of the file.
 byte[] getFormatted()
           
static void main(String[] args)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FCI_BYTE

public static final byte FCI_BYTE
This class reflects the File Control Parameters included in the FCI as described in ISO7816-4 in Table 12

See Also:
Constant Field Values

FMD_BYTE

public static final byte FMD_BYTE
See Also:
Constant Field Values

FCP_BYTE

public static final byte FCP_BYTE
See Also:
Constant Field Values

DATA_BYTES1

public static final byte DATA_BYTES1
See Also:
Constant Field Values

DATA_BYTES2

public static final byte DATA_BYTES2
See Also:
Constant Field Values

FILE_DESCRIPTOR

public static final byte FILE_DESCRIPTOR
See Also:
Constant Field Values

FILE_IDENTIFIER

public static final byte FILE_IDENTIFIER
See Also:
Constant Field Values

DF_NAME

public static final byte DF_NAME
See Also:
Constant Field Values

PROP_INFO

public static final byte PROP_INFO
See Also:
Constant Field Values

SECURITY_ATTR_PROP

public static final byte SECURITY_ATTR_PROP
See Also:
Constant Field Values

FCI_EXT

public static final byte FCI_EXT
See Also:
Constant Field Values

SHORT_EF

public static final byte SHORT_EF
See Also:
Constant Field Values

LCS_BYTE

public static final byte LCS_BYTE
See Also:
Constant Field Values

SECURITY_ATTR_EXP

public static final byte SECURITY_ATTR_EXP
See Also:
Constant Field Values

SECURITY_ATTR_COMPACT

public static final byte SECURITY_ATTR_COMPACT
See Also:
Constant Field Values

ENV_TEMP_EF

public static final byte ENV_TEMP_EF
See Also:
Constant Field Values

CHANNEL_SECURITY

public static final byte CHANNEL_SECURITY
See Also:
Constant Field Values

A0

public static final byte A0
See Also:
Constant Field Values

A1

public static final byte A1
See Also:
Constant Field Values

A2

public static final byte A2
See Also:
Constant Field Values

A5

public static final byte A5
See Also:
Constant Field Values

AB

public static final byte AB
See Also:
Constant Field Values

AC

public static final byte AC
See Also:
Constant Field Values
Constructor Detail

ISOFileInfo

public ISOFileInfo(byte[] fileInfo)
            throws CardServiceException
Throws:
CardServiceException
Method Detail

getFormatted

public byte[] getFormatted()

toString

public String toString()
Overrides:
toString in class Object

getFID

public short getFID()
Returns the file length of the file.

Specified by:
getFID in class FileInfo
Returns:
file length

getFileLength

public int getFileLength()
Returns the file length of the file.

Specified by:
getFileLength in class FileInfo
Returns:
file length

main

public static void main(String[] args)

JMRTD 0.4.5