throw new AxisFault(
"Inflow configuration must contain an 'action' "
+ "elements the child of 'InflowSecurity' element");
}
InflowConfiguration inflowConfiguration = new InflowConfiguration();
Iterator childElements = actionElem.getChildElements();
while (childElements.hasNext()) {
OMElement element = (OMElement) childElements.next();
String localName = element.getLocalName();
String text = element.getText().trim();
if(localName.equals(WSHandlerConstants.PW_CALLBACK_CLASS)) {
inflowConfiguration.setPasswordCallbackClass(text);
} else if(localName.equals(WSHandlerConstants.SIG_PROP_FILE)) {
inflowConfiguration.setSignaturePropFile(text);
} else if(localName.equals(WSHandlerConstants.DEC_PROP_FILE)) {
inflowConfiguration.setDecryptionPropFile(text);
} else if (WSHandlerConstants.ENABLE_SIGNATURE_CONFIRMATION
.equals(localName)) {
if ("false".equals(text)
|| "0".equals(text)) {
inflowConfiguration
.setEnableSignatureConfirmation(false);
}
}
}
return inflowConfiguration;