Discussions
Categories
- 196.8K All Categories
- 2.2K Data
- 235 Big Data Appliance
- 1.9K Data Science
- 449.9K Databases
- 221.6K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 549 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 532 SQLcl
- 4K SQL Developer Data Modeler
- 186.9K SQL & PL/SQL
- 21.3K SQL Developer
- 295.5K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.1K Development Tools
- 104 DevOps
- 3.1K QA/Testing
- 645.9K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 154 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 158 Java 8 Questions
- 85.9K Java Programming
- 79 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.2K Java SE
- 13.8K Java Security
- 203 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 402 LiveLabs
- 37 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.6K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 230 Portuguese
create file record java card

i'm new to java card, i'm studying the standards for development, a question arose, could someone help me? I did not find anywhere or document on how I access or create the structure of the javacard. follow the example I'm doing.
public final static byte[] fci = {(byte) 0x6F, (byte) 0x1E,
(byte) 0x84, (byte) 0x0E, (byte) 0x31, (byte) 0x50, (byte) 0x41, (byte) 0x59, (byte) 0x2E, (byte) 0x53, (byte) 0x59, (byte) 0x53, (byte) 0x2E, (byte) 0x44, (byte) 0x44, (byte) 0x46, (byte) 0x30, (byte) 0x31,
(byte) 0xA5, (byte) 0x0C,
(byte) 0x88, (byte) 0x01,(byte) 0x01,
(byte) 0x5F, (byte) 0x2D, (byte) 0x02, (byte) 0x70, (byte) 0x74,
(byte) 0x9F, (byte) 0x11, (byte) 0x01, (byte) 0x01};
how do I create the file record structure?
FCI - ok
FCI Proprietary template - ok
File 1 ------------------- ?????
Record 1 --------- ?????
ADF -- ?????
how it works? could someone explain to me?
Answers
-
Hi,
If I understand correctly, you're trying to implement an ISO 7816-4 File System (or likewise).
The Java Card API does not contain a ready-to-use set of classes for these data structures, but there are some useful open source projects that you can use as starting point, for example here.Patrick
-
Thanks a lot for the help.
but could you explain to me with a simple example in code, how do I make this resource allocation to build a file system in java card??? -
Again, Java Card API does not define any kind of FileSystem class that you could just instantiate to implement such file system (with data structure, access rights, and APDU command set to use it).
However, Java Card is extensible and implementations may also embed additional standard API (e.g. SIM card - look for ETSI TS 102 241 - UICC API) or proprietary API that you could use.
If instead such API are not available, you will have to create your own and the link provided above gives some good examples how to do this.