}
return loginConfig;
}
private SecurityRoleSet getSecurityRoles(Element e) {
SecurityRoleSetImpl securityRoles = new SecurityRoleSetImpl();
NodeList securityRoleNL = e.getElementsByTagName("security-role");
for (int i = 0; i < securityRoleNL.getLength(); i++) {
Element securityRoleE = (Element)securityRoleNL.item(i);
String roleName = XML.getChildElementText(securityRoleE, "role-name");
String description = XML.getChildElementText(securityRoleE, "description");
SecurityRoleImpl securityRole = new SecurityRoleImpl();
securityRole.setDescription(description);
securityRole.setRoleName(roleName);
securityRoles.add(securityRole);
}
return securityRoles;
}