How to use APDU in JSR 177 to access SIM card?

J2ME provides JSR 177 which has APIs for accessing a SIM card as a smart card. I want to explore this more and see what I can do about it, but I can't find any documentation on this. All the documentation I've found so far is very versatile and only mentions how to access the smart card using the APDU API, not how I can use it for anything on the SIM.

Any ideas on where to start?

+1


a source to share


1 answer


Basically, JSR 177 is supposed to be used to extract the certificate that is on the SIM, so you can encrypt / decrypt / sign the data the way you like MNO.

The difficulty in finding documentation comes from so many mobile phone manufacturers who have included the full JSR177 implementation in their phone.

This, in turn, seems to involve a huge amount of external, security-related specifications to read and understand before the JSR177 specification makes sense unless you are a cryptographic protocol expert.



TCK sources and additional Symbian / Nokia test code would be a good place to look, but sadly none of them have been open yet.

Common commands, such as changing the SIM PIN, basically require an understanding of the binary protocol itself. Simply adding the correct sequence of bytes to the GCF APDU URL will execute if the JSR177 implementation itself is correct.

If you've just looked at the Sun JavaME SDK, you should probably take a look at the MIDD APDU example in the latest Series60 SDK and add documentation to the Java Java Developers Library.

+3


a source







All Articles