FileDocCategorySizeDatePackage
AODF.javaAPI DocphoneME MR2 API (J2ME)3110Wed May 02 18:00:38 BST 2007com.sun.satsa.util.pkcs15

AODF

public class AODF extends PKCS15File
This class represents the PKCS15 AODF file abstraction

Fields Summary
private Vector
AODF
This vector contains parsed objects from DF(AODF).
private int
size
Number of thr PIN entries
private TLV[]
Entries
Array for the PIN entries
Constructors Summary
public AODF(Location location, FileSystemAbstract files)
Creates AODF object for the pointed location and file system

param
location Location required location
param
files FileSystemAbstract requred file system


                              
         
        super(location, files);
    
Methods Summary
public TLVgetEntry(int index)
Returns pointed authentication object

param
index int index of the authentication object
return
TLV required authentication object

        return Entries[index];
    
public intgetEntryCount()
Returns number of the Authentication objects

return
int

        return size;
    
public voidload()
Loads DODF object from the file system

throws
IOException if I/O error occurs
throws
TLVException if TLV error occurs

        AODF = new Vector();
        resetLoader(AODF, null, null);
        parseDF(location.path);
        readAODF();
    
private voidreadAODF()
Reads AODF data from the AODF vector.

throws
TLVException if TLV error occurs

        TLV root = (TLV)AODF.firstElement();    /* SEQUENCE OF */
        size = AODF.size();
        Entries = new TLV[size];
        for (int i = 0; i < size; i++) {
            Entries[i] = (TLV)AODF.elementAt(i);
        }