JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
how to set status of apdu command
how to set status of apdu command
Hello sir,
Any one help me how to set the status of apdu command.
Regards,
Thammineni Naresh.
Any one help me how to set the status of apdu command.
Regards,
Thammineni Naresh.
Re: how to set status of apdu command
"ISOException.throwIt". The prototype of the method see the following.
Code: Select all
public static void throwIt(short sw)
-
- Posts: 35
- Joined: Wed Jun 20, 2018 4:06 am
- Points :218
- Contact:
Re: how to set status of apdu command
If you want to set the status of APDU command. there are two situations:
1. the status equals to 0x9000, you set nothing because the JVCOS will help the applet to set the status.
2. the status means the exception or the private implication. you can use the ISOException.throwIt(status) to set the status.
1. the status equals to 0x9000, you set nothing because the JVCOS will help the applet to set the status.
2. the status means the exception or the private implication. you can use the ISOException.throwIt(status) to set the status.
-
- Posts: 39
- Joined: Wed Aug 31, 2016 9:55 pm
- Points :372
- Contact:
Re: how to set status of apdu command
The underlying JCVM implementation first sends the response data and then checks the status word of SW1 SW2. If SW is an internal exception to JCRE / JCVM, 6700 will normally be thrown. If SW is not equal to 9000, the exception specified by the application is thrown.
Who is online
Users browsing this forum: No registered users and 44 guests