DOMValidateContext validationContext =
new DOMValidateContext(KeySelectorImpl.getInstance(), signElement);
XMLSignatureFactory signatureFactory = WSSPolicyConsumerImpl.getInstance().getSignatureFactory();
// unmarshal the XMLSignature
XMLSignature signature = signatureFactory.unmarshalXMLSignature(validationContext);
validationContext.setURIDereferencer(DSigResolver.getInstance());
// Validate the XMLSignature (generated above)
validationContext.put(MessageConstants.WSS_PROCESSING_CONTEXT, context);
boolean coreValidity = signature.validate(validationContext);
if (coreValidity == false){