use of org.apache.wss4j.policy.model.Wss11 in project cxf by apache.
the class PolicyBasedWSS4JInInterceptor method handleWSS11.
private void handleWSS11(AssertionInfoMap aim, SoapMessage message) {
if (isRequestor(message)) {
message.put(ConfigurationConstants.ENABLE_SIGNATURE_CONFIRMATION, "false");
Collection<AssertionInfo> ais = PolicyUtils.getAllAssertionsByLocalname(aim, SPConstants.WSS11);
if (!ais.isEmpty()) {
for (AssertionInfo ai : ais) {
Wss11 wss11 = (Wss11) ai.getAssertion();
if (wss11.isRequireSignatureConfirmation()) {
message.put(ConfigurationConstants.ENABLE_SIGNATURE_CONFIRMATION, "true");
break;
}
}
}
}
}
Aggregations