Saturday, February 23, 2008

Create File with Java Card code

You should read
  • ETSI TS 102.226 (8.2.1.3.2.2.2 and 8.2.1.3.2.2.4) that explains the UICC access parameters. The Application is only granted to access files according UICC access parameters.
  • ETSI TS 102.241(8) that describes AdminFIleView objects and operation
  • Each file operation is mentioned at ETSI TS 102.222 (8)
2 different classes of file
  • Dedicated files DF (directories)
  • Elementary files EF (data files)
3 different types of elementary files
  • Transparent files
  • Linear fixed files
  • Cyclic files
Package : uicc.access

EF TAG
  1. File descriptor(TS 102.221 11.1.1.4.3)*
    • Tag = '82'
    • Length = '02' or '04'
    • value :
      • Data Coding ='21'
      • File Desc value :
        • No Information given = '20'
        • Transparent Structure ='41'
        • Linear Fixed = '42'
        • Cyclic = '46'
      • Record length = '0001' to '00FF'
      • Number of record = '01' to 'FE'
  2. File ID*
    • Tag = '83'
    • Length = '02'
  3. Life Cycle Status Information*
    • Tag = '8A'
    • Length = '01'
  4. Security attribute *
    • Tag Compact ='8A', Expanded = 'AB', Referenced ='8B'
    • Length = n
  5. File Size *
    • Tag = '80'
    • Length = n
  6. Short File Identifier
    • Tag ='88'
    • Length = '00' or '01'
  7. Proprietary
    • Tag = 'A5' or '85'
DF TAG
  1. File descriptor*
    • Tag = '82'
    • Length = '02'
  2. File ID*
    • Tag = '83'
    • Length = '02'
  3. DF Name(AID)
    • Tag = '84'
    • Length
    • Value 1-16 byte
  4. Life Cycle Status Information*
    • Tag = '8A'
    • Length = '01'
  5. Total File Size*
    • tag ='81'
    • length
  6. Security Atribute*
    • Tag Compact ='8C', Expanded = 'AB', Referenced ='8B'
    • Length = n
  7. Pin Status Template *
    • Tag = 'C6'
    • length
    • Length = n
  8. Data Coding Byte
    • Tag ='21'
  9. Proprietary
    • Tag = 'A5' or '85'