public class SSLConfigBuilder implements AssertionBuilder<OMElement> {
public Assertion build(OMElement element, AssertionBuilderFactory factory)
throws IllegalArgumentException {
SSLConfig sslCofig = new SSLConfig();
Properties properties = new Properties();
OMElement childElement;
OMAttribute name;
String value;
for (Iterator iterator = element.getChildElements(); iterator.hasNext();) {
childElement = (OMElement) iterator.next();
QName prop = new QName(RampartConfig.NS, SSLConfig.PROPERTY_LN);
if (prop.equals(childElement.getQName())) {
name = childElement.getAttribute(new QName(SSLConfig.PROPERTY_NAME_ATTR));
value = childElement.getText();
//setting the jsse properties to the vm
System.setProperty(name.getAttributeValue(), value);
properties.put(name.getAttributeValue(), value.trim());
}
}
sslCofig.setProp(properties);
return sslCofig;
}