Fields Summary |
---|
public static final int | ODFTAG_PRIVATE_KEYSPrivateKeys ODF entry tag. |
public static final int | ODFTAG_PUBLIC_KEYSPublicKeys ODF entry tag. |
public static final int | ODFTAG_TRUSTED_PUBLIC_KEYSPublicKeys ODF entry tag. |
public static final int | ODFTAG_SECRET_KEYSSecretKeys ODF entry tag. |
public static final int | ODFTAG_CERTIFICATESCertificates ODF entry tag. |
public static final int | ODFTAG_TRUSTED_CERTIFICATESCertificates ODF entry tag. |
public static final int | ODFTAG_USEFUL_CERTIFICATESCertificates ODF entry tag. |
public static final int | ODFTAG_DATA_OBJECTSDataObjects ODF entry tag. |
public static final int | ODFTAG_AUTH_OBJECTSAuthObjects ODF entry tag. |
private Vector | pukdfPathPublicKeys objects |
private Vector | prkdfPathPrivateKeys objects |
private Vector | cdfPathCertificates obiects |
private Vector | skdfPathSecretKeys objects |
private Vector | aodfPathAuthObjects objects |
private Vector | dodfPathDataObjects objects |
private Vector | ODFThis vector contains parsed objects from DF(ODF). |
Methods Summary |
---|
public int | getAODFCount()Returns a number of the AODF files
return aodfPath.size();
|
public Location | getAODFPath(int index)returns location of the AODF file
return ((Location)aodfPath.elementAt(index));
|
public java.util.Vector | getDOFs(byte[] tag)Seeks the DODF file for the pointed tag
Vector v = new Vector();
for (int i = 0; i < dodfPath.size(); i++) {
DODF d = new DODF((Location)dodfPath.elementAt(i), files);
d.load();
for (int j = 0; j < d.getOidDoNumber(); j++) {
if (Utils.byteMatch(tag, d.getOid(j))) {
v.addElement(d.getOidDoValueTLV(j));
}
}
}
return v;
|
public void | load()Reads ODF .
ODF = new Vector();
resetLoader(ODF, null, null);
parseDF(new short[] {ODFPath});
for (int i = 0; i < ODF.size(); i++) {
TLV t = (TLV) ODF.elementAt(i);
Location l = files.pathToLocation(t.child.child);
switch (t.type) {
case ODFTAG_PRIVATE_KEYS: {
prkdfPath.addElement(l);
break;
}
case ODFTAG_PUBLIC_KEYS :
case ODFTAG_TRUSTED_PUBLIC_KEYS : {
pukdfPath.addElement(l);
break;
}
case ODFTAG_SECRET_KEYS : {
skdfPath.addElement(l);
break;
}
case ODFTAG_CERTIFICATES :
case ODFTAG_TRUSTED_CERTIFICATES :
case ODFTAG_USEFUL_CERTIFICATES : {
cdfPath.addElement(l);
break;
}
case ODFTAG_DATA_OBJECTS : {
dodfPath.addElement(l);
break;
}
case ODFTAG_AUTH_OBJECTS : {
aodfPath.addElement(l);
break;
}
}
}
|