public int | preparePIN(int id, int uid, int action)Returns APDU header for given PIN and PIN operation.
Initializes internal variables, verifies that operation is
supported and permitted.
checkPINOperation(id, uid, action);
Integer result = (Integer) getPINCommand(id, action);
int command = result != null ? result.intValue() :
defaultPINCommand[action] | (attr1.pinReference & 0xff);
checkPermission(command);
return command;
|