APDU Command Type Identification
To identify proprietary and interindustry commands, use the
isISOInterindustryCLA
method. This call returns
true
if the CLA byte encoding corresponds to the interindustry
space, or false
if it corresponds to the proprietary space.
...
//Applet's process method
public void process(APDU apdu) {
byte[] buffer = apdu.getBuffer();
// check SELECT APDU command
if (apdu.isISOInterindustryCLA()) {
if (Applet.selectingApplet()) {
return;
} else {
ISOException.throwIt (ISO7816.SW_CLA_NOT_SUPPORTED);
}
}
...