Iterator iter = config.getSecurityConstraint().iterator();
while (iter.hasNext() == true)
{
SecurityConstraint constraint = (SecurityConstraint) iter.next();
AuthConstraint auth = constraint.getAuthConstraint();
Iterator i = auth.getRoleName().iterator();
String[] roles = new String[auth.getRoleName().size()];
int index = 0;
while (i.hasNext() == true)
{
String role = (String) i.next();
roles[index++] = role;
}
i = constraint.getJipletResourceCollection().getJipletNames()
.getJipletName().iterator();
while (i.hasNext() == true)
{
String jiplet = (String) i.next();
Jiplet j = context.findJiplet(jiplet);
if (j == null)
{
throw new JipletException(
"While creating security constraint for collection "
+ constraint.getJipletResourceCollection()
.getJipletResourceName()
+ " jiplet " + jiplet + " was not found");
}
synchronized (jipletMap)
{
String rname = auth.getRealm();
if (rname == null)
{
rname = JipletContainer.getInstance().getDefaultRealm();
}