LOG.debug(outputString);
}
// Turn off BSP spec compliance
WSSecurityEngine newEngine = new WSSecurityEngine();
WSSConfig config = WSSConfig.getNewInstance();
config.setWsiBSPCompliant(false);
newEngine.setWssConfig(config);
List<WSSecurityEngineResult> results = newEngine.processSecurityHeader(doc, null, null, crypto);
WSSecurityEngineResult actionResult =
WSSecurityUtil.fetchActionResult(results, WSConstants.SIGN);
assertNotNull(actionResult.get(WSSecurityEngineResult.TAG_X509_CERTIFICATE));
assertNotNull(actionResult.get(WSSecurityEngineResult.TAG_X509_REFERENCE_TYPE));
REFERENCE_TYPE referenceType =
(REFERENCE_TYPE)actionResult.get(WSSecurityEngineResult.TAG_X509_REFERENCE_TYPE);
assertTrue(referenceType == REFERENCE_TYPE.KEY_IDENTIFIER);
// Now turn on BSP spec compliance
config.setWsiBSPCompliant(true);
newEngine.setWssConfig(config);
try {
newEngine.processSecurityHeader(doc, null, null, crypto);
fail("Failure expected on a bad ValueType attribute");
} catch (WSSecurityException ex) {