}
securityConstraint.setWebResourceCollections(webResourceCollections);
NodeList authConstraintNL = securityConstraintE.getElementsByTagName("auth-constraint");
if (authConstraintNL.getLength() > 0) {
Element authConstraintE = (Element)authConstraintNL.item(0);
AuthConstraintImpl authConstraint = new AuthConstraintImpl();
DescriptionSet descriptions = getDescriptions(authConstraintE);
NodeList roleNameNL = authConstraintE.getElementsByTagName("role-name");
String[] roleNames = new String[roleNameNL.getLength()];
for (int k = 0; k < roleNameNL.getLength(); k++) {
Element roleNameE = (Element)roleNameNL.item(k);
roleNames[k] = XML.getElementText(roleNameE);
}
authConstraint.setDescriptions(descriptions);
authConstraint.setRoleNames(roleNames);
securityConstraint.setAuthConstraint(authConstraint);
}
NodeList userDataConstraintNL = securityConstraintE.getElementsByTagName("user-data-constraint");
if (userDataConstraintNL.getLength() > 0) {
Element userDataConstraintE = (Element)userDataConstraintNL.item(0);