JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
Directory Tree of Java Card Filesystem
Directory Tree of Java Card Filesystem
I need to build Directory Tree of Java Card Filesystem using APDU commands.
I found info how to select DF or EF, read or write info, but I can not find how to obtain list of DFs and EFs in DF.
Could anybody tell me how to list directories and files in a directory on java card over APDU commands.
Much appreciated.
I found info how to select DF or EF, read or write info, but I can not find how to obtain list of DFs and EFs in DF.
Could anybody tell me how to list directories and files in a directory on java card over APDU commands.
Much appreciated.
Re: Directory Tree of Java Card Filesystem
There is no standard command for listing all EFs and DFs on the java cards.
Most tools have a pre saved list of the file structure and select them one by one on the card. If the result is OK (9Fxx) then the specified file exists on the card.
Most tools have a pre saved list of the file structure and select them one by one on the card. If the result is OK (9Fxx) then the specified file exists on the card.
Re: Directory Tree of Java Card Filesystem
I guess it includes calls to SELECT FILE using the proper P1 and P2 to implement "select next file", but now I don't have a concrete solution.
Re: Directory Tree of Java Card Filesystem
You may need to know these functions (i.e. DIRECTORY, LIST_OBJECTS), which are OS-depended. ISO 7816 does not describe them.
It means that you should read Card OS specification to make done this task.
It means that you should read Card OS specification to make done this task.
Re: Directory Tree of Java Card Filesystem
Here are some quotes from the JavaCard Applet Developer Guide written by Sun:
In essence, you have to implement it in the JCOS or applet level.
You can read the guide from the link below. Scroll to page 43 in the PDF.
Link: http://ftp.icm.edu.pl/packages/javasoft ... sGuide.pdf
Support for ISO 7816-4 files is provided by the javacardx.framework package. This is an extension package to the core javacard.* classes which may not be implemented on all Java Card platforms.
In essence, you have to implement it in the JCOS or applet level.
You can read the guide from the link below. Scroll to page 43 in the PDF.
Link: http://ftp.icm.edu.pl/packages/javasoft ... sGuide.pdf
Who is online
Users browsing this forum: No registered users and 29 guests