Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Java 1.5.6
-
None
-
None
Description
DOMXMLSignature.validate is doing:
ksResult = validateContext.getKeySelector().select (ki, KeySelector.Purpose.VERIFY, sm, validateContext); validationKey = ksResult.getKey();
this while the javadoc on KeySelector states:
Note that an inability to find a key is not considered an exception (null should be returned in that case).
Hence you can get an NPE.