/** * Enforce Workbook Protection, with the specified password, * using sha512 (like Excel 2013). * * @param password if null, no password will be used * @param lockRevision * @param lockStructure * @param lockWindows * @throws Xlsx4jException */ public void setWorkbookProtection(String password, boolean lockRevision, boolean lockStructure, boolean lockWindows) throws Xlsx4jException { setWorkbookProtection(password, HashAlgorithm.sha512, lockRevision, lockStructure, lockWindows); }
/** * Enforce Workbook Protection, with the specified password, * using sha512 (like Excel 2013). * * @param password if null, no password will be used * @param lockRevision * @param lockStructure * @param lockWindows * @throws Xlsx4jException */ public void setWorkbookProtection(String password, boolean lockRevision, boolean lockStructure, boolean lockWindows) throws Xlsx4jException { setWorkbookProtection(password, HashAlgorithm.sha512, lockRevision, lockStructure, lockWindows); }