TestApplet: include object deletion test
This commit is contained in:
@@ -341,6 +341,13 @@ public final class TestApplet extends Applet {
|
||||
}
|
||||
}
|
||||
|
||||
private final void processDeletion() {
|
||||
if(!JCSystem.isObjectDeletionSupported()) {
|
||||
ISOException.throwIt(Data.SW_DELETION_NOT_SUPPORTED);
|
||||
}
|
||||
JCSystem.requestObjectDeletion();
|
||||
}
|
||||
|
||||
public final void process(final APDU apdu) {
|
||||
final byte[] apdubuf = apdu.getBuffer();
|
||||
|
||||
@@ -376,6 +383,10 @@ public final class TestApplet extends Applet {
|
||||
}
|
||||
break;
|
||||
|
||||
case Data.INS_TEST_DELETION:
|
||||
processDeletion();
|
||||
break;
|
||||
|
||||
default:
|
||||
ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user