String outputString =
XMLUtils.PrettyDocumentToString(signedDoc);
LOG.debug(outputString);
}
WSSecurityEngine newEngine = new WSSecurityEngine();
try {
newEngine.processSecurityHeader(doc, null, null, crypto);
fail("Failure expected on a bad ValueType attribute");
} catch (WSSecurityException ex) {
// expected
}
RequestData data = new RequestData();
data.setSigVerCrypto(crypto);
data.setIgnoredBSPRules(Collections.singletonList(BSPRule.R3063));
List<WSSecurityEngineResult> results =
newEngine.processSecurityHeader(signedDoc, "", data);
WSSecurityEngineResult actionResult =
WSSecurityUtil.fetchActionResult(results, WSConstants.SIGN);
assertNotNull(actionResult.get(WSSecurityEngineResult.TAG_X509_CERTIFICATE));
assertNotNull(actionResult.get(WSSecurityEngineResult.TAG_X509_REFERENCE_TYPE));