I’m creating a protected XLSX file like this:
XSSFWorkbook wb = new XSSFWorkbook();
wb.lockStructure();
wb.setWorkbookPassword(PASSWORD, null);
When I open the file generated by Excel, I check that it is correctly protected. However, when opening it in LibreOffice, the file is not protected, allowing editing of the structure.
How can I protect it for LibreOffice too? Is it a bug in POI or in LibreOffice?