if (buffer[ISO7816.OFFSET_CLA] == CLA_SECURITY) { switch (buffer[ISO7816.OFFSET_INS]) { case INS_CODE: encode(apdu); break;  case INS_DECODE: break;
if (inBuffer[ISO7816.OFFSET_CLA] == CLA_SECURITY) { switch (inBuffer[ISO7816.OFFSET_INS]) { case INS_CODE: encode(apdu); break; case INS_DECODE: decode(apdu); break;
    public void process(APDU apdu) throws ISOException {        buffer = apdu.getBuffer();        if (buffer[ISO7816.OFFSET_CLA] == CLA_SECURITY) {            switch (buffer[ISO7816.OFFSET_INS]) {                case INS_CODE:                    encode(apdu);                    break;                                case INS_DECODE:                    break;                                    case INS_SET_USER_KEY:                    break;                                    default:                    ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);            }        }        else            ISOException.throwIt(ISO7816.SW_CLA_NOT_SUPPORTED);    }