throw new AxisFault(
"Inflow configurtion must contain an 'action' "
+ "elementas the child of 'InflowSecurity' element");
}
OutflowConfiguration outflowConfiguration = new OutflowConfiguration();
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)) {
outflowConfiguration.setPasswordCallbackClass(text);
} else if(localName.equals(WSHandlerConstants.SIG_PROP_FILE)) {
outflowConfiguration.setSignaturePropFile(text);
} else if(localName.equals(WSHandlerConstants.ENC_PROP_FILE)) {
outflowConfiguration.setEncryptionPropFile(text);
} else if(localName.equals(WSHandlerConstants.ENC_CALLBACK_CLASS)) {
outflowConfiguration.setEmbeddedKeyCallbackClass(text);
} else if(localName.equals(WSHandlerConstants.USER)) {
outflowConfiguration.setUser(text);
} else if(localName.equals(WSHandlerConstants.ENCRYPTION_USER)) {
outflowConfiguration.setEncryptionUser(text);
}
}
return outflowConfiguration;
}
return null;