Christmas is coming soon! To thank for the support from all our dear customers, Christmas promotional activity is going on in JavaCardOS online store. For more activities details, please check this post.

HOW TO DEAL WITH THE COMMAND DATA ??

Applets Development Guide

Moderator: product

OSSAMA
Posts: 6
Joined: Sun Mar 19, 2017 8:54 am
Points :202
Contact:

HOW TO DEAL WITH THE COMMAND DATA ??

Post by OSSAMA » Wed Aug 15, 2018 7:33 am

Dear All,
Thank you in advance as I am new to the Java card technology.
I am trying to check the first byte in the command data as shown in the example code.
I have declared the apduBuffer as
byte[] apduBuffer = apdu.getBuffer();
my problem is the code always process the else and never ever do the if. regardless of whatever value in the command data.
How can I deal with the command data ?
if (apduBuffer [0] > 30)
{
xx (apdu,LEN);
break;
}
else
ISOException.throwIt (SW_APPLET_SELECT_FAILED);
Best Regards

kuafu
Posts: 97
Joined: Thu Jun 25, 2015 2:09 am
Points :1213
Contact:

Re: HOW TO DEAL WITH THE COMMAND DATA ??

Post by kuafu » Thu Aug 16, 2018 3:14 am

Do your select the applet first.
Look , mine is fine .
You do not have the required permissions to view the files attached to this post. Please login first.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 1 guest

JavaCard OS : Disclaimer