Service Sample
Java Card platform provides a service framework of classes and interfaces that allow a Java Card technology-based applet to be designed as an aggregation of service components. Service demo essentially demonstrates this. The class Main.java
adds a TestService to process the APDUs dispatched by the client. Based on the contents of INS
command in the APDU sent it does the following:
-
If
INS
is 0x10, it returns status word 6617. -
If
INS
is 0x20, it returns status word 6618. -
If
INS
is 0x30, it returns status word 9000.
Follow one of these sets of instructions to run this sample: