\r
/**\r
* @return true, when the xml signature is valid, false otherwise\r
+ * \r
+ * @throws EncryptedDocumentException if the signature can't be extracted or if its malformed\r
*/\r
+ @SuppressWarnings("unchecked")\r
public boolean validate() {\r
KeyInfoKeySelector keySelector = new KeyInfoKeySelector();\r
try {\r
\r
return valid;\r
} catch (Exception e) {\r
- LOG.log(POILogger.ERROR, "error in marshalling and validating the signature", e);\r
- return false;\r
+ String s = "error in marshalling and validating the signature";\r
+ LOG.log(POILogger.ERROR, s, e);\r
+ throw new EncryptedDocumentException(s, e);\r
}\r
}\r
}\r