XmlBeansUtil.validateDD(tss);
} catch (XmlException e) {
throw new DeploymentException("Error parsing TSS configuration", e);
}
TSSConfig tssConfig = new TSSConfig();
tssConfig.setInherit(tss.getInherit());
if (tss.isSetSSL()) {
tssConfig.setTransport_mech(extractSSL(tss.getSSL()));
} else if (tss.isSetSECIOP()) {
throw new PropertyEditorException("SECIOP processing not implemented");
} else {
tssConfig.setTransport_mech(new TSSNULLTransportConfig());
}
if (tss.isSetCompoundSecMechTypeList()) {
TSSCompoundSecMechListConfig mechListConfig = tssConfig.getMechListConfig();
mechListConfig.setStateful(tss.getCompoundSecMechTypeList().getStateful());
TSSCompoundSecMechType[] mechList = tss.getCompoundSecMechTypeList().getCompoundSecMechArray();
for (int i = 0; i < mechList.length; i++) {
TSSCompoundSecMechConfig cMech = extractCompoundSecMech(mechList[i], bundle);
cMech.setTransport_mech(tssConfig.getTransport_mech());
mechListConfig.add(cMech);
}
}
return tssConfig;