Q:

Read UID of java card within the program

I am new to java card development.i want to read the java card UID within the program.i want to use that key for future usages.i don't want to send the apdu commands and get the UID.is there any way to read the UID within code???
Thanks
SSv

A:

Untested by me, but there appears to be a UID class with a static getStaticUID() method in the proprietary NXP APIs on JCOP. 
If you have Eclipse with NXP JCOP tools installed, look into plugins of your Eclipse installation folder to find a *smartmx.targetpacks.smartmx_*/apis folder which contains (zipped) Javadocs for NXP proprietary API.
As far as I know there is no standardized way in Java Card or Global Platform to get to the UID.

