LOG.debug("Encrypted message, RSA-OAEP keytransport, 3DES:");
LOG.debug(outputString);
}
assertFalse(outputString.contains("counter_port_type"));
WSSecurityEngine newEngine = new WSSecurityEngine();
try {
newEngine.processSecurityHeader(encryptedDoc, null, keystoreCallbackHandler, crypto);
fail("Failure expected on a bad ValueType attribute");
} catch (WSSecurityException ex) {
// expected
}
RequestData data = new RequestData();
data.setCallbackHandler(keystoreCallbackHandler);
data.setDecCrypto(crypto);
data.setIgnoredBSPRules(Collections.singletonList(BSPRule.R3063));
List<WSSecurityEngineResult> results =
newEngine.processSecurityHeader(encryptedDoc, "", data);
WSSecurityEngineResult actionResult =
WSSecurityUtil.fetchActionResult(results, WSConstants.ENCR);
assertNotNull(actionResult.get(WSSecurityEngineResult.TAG_X509_CERTIFICATE));
assertNotNull(actionResult.get(WSSecurityEngineResult.TAG_X509_REFERENCE_TYPE));