验证用于保护工作表的密码

验证用于保护工作表的密码

这[保护.verifyPassword](https://reference.aspose.com/cells/java/com.aspose.cells/protection#verifyPassword(java.lang.String) 方法返回真的如果指定的密码与用于保护给定工作表的密码匹配,错误的如果指定的密码不匹配。下面的一段代码使用了[保护.verifyPassword](https://reference.aspose.com/cells/java/com.aspose.cells/protection#verifyPassword(java.lang.String) 方法连同保护.isProtectedWithPassword属性检测密码保护,并验证密码。