1. If opening file is protected (security options), you should offer a password to open the file.Please use Workbook.read(String,int,String) method to open file.
2. If only the workbook is protected , a password is not needed.
Protects:
1. Protects file:
Aspose.Cells for Java only supports to setting file modify protection.
Please use Workbook.protectFile(byte,String) to protect file.
2. Protect the workbooks:
Please use Workbook.protectWorkbook(String) to protect workbook.Before call this method ,please make sure that the workbook is unprotectd, otherwise, a CellException will be thrown.
Unprotects:
1. Unprotects file,please use Workbook.protectFile(byte,null) to remove protection.
2. Unprotects workbook, please use Workbook.unprotectWorkbook(String) to unprotect workbook.