HSSFWorkbook wb = new HSSFWorkbook(); wb.writeProtectWorkbook("susanta","susanta ghosh");
There was a lot of work done on password protected files in the meantime so I expect this is fixed since a long time, therefore I am closing this as FIXED, please report new bugs for anything that is still not working.