Field Summary |
|
final protected static byte | INS_READ APDU INS byte. |
final protected static byte | INS_SELECT APDU INS byte. |
final protected static byte | INS_UPDATE APDU INS byte. |
final static int | MAX_PATH_DEPTH Expected maximum path depth. |
protected Connection | apdu Connection used by this file system. |
protected int | currentFileSize Size of currently selected EF or -1 if DF is selected. |
short[] | currentPath Path to the current DF. |
protected boolean | isEFSelected True if currently selected file is EF. |
int | pathLength The length of path to current DF. |
short[] | root Root path for this application. |
Method Summary |
|
public int | getCurrrentFileSize() Returns the size of currently selected EF or -1 if DF is
selected. |
public TLV | loadObject(Location l) Loads and parses one DER encoded object.
Parameters: l - location of the object. |
public short[] | makePath(TLV t) If necessary converts path into completely specified path. |
public Location | pathToLocation(TLV path) Converts PKCS#15 path into location. |
abstract public byte[] | readData(int offset, int length, int fileOffset) Reads part of selected file. |
public byte[] | readFile() Reads the current EF. |
public void | select(short[] path) Selects file using only SELECT APDU command with file identifier. |
abstract public void | select(short id) Selects file by ID. |
public void | selectRoot(short[] root) Sends the select DF command to the card. |
public void | setRoot(short[] root) Sets the root directory for this file system. |