javadoc and setRoles

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1170 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2009-12-29 22:51:49 +00:00
parent 94e6168fe6
commit e6b261cec2
1 changed files with 17 additions and 1 deletions

View File

@ -64,6 +64,8 @@ public class ConstraintSecurityHandler extends SecurityHandler implements Constr
* </ul>
*
* @param strict the strict to set
* @see #setRoles(Set)
* @see #setConstraintMappings(ConstraintMapping[], Set)
*/
public void setStrict(boolean strict)
{
@ -128,9 +130,23 @@ public class ConstraintSecurityHandler extends SecurityHandler implements Constr
}
}
}
setRoles(roles);
}
/* ------------------------------------------------------------ */
/**
* Set the known roles.
* This may be overridden by a subsequent call to {@link #setConstraintMappings(ConstraintMapping[])} or
* {@link #setConstraintMappings(ConstraintMapping[], Set)}.
* @see #setStrict(boolean)
* @param roles The known roles (or null to determine them from the mappings)
*/
public void setRoles(Set<String> roles)
{
if (isStarted())
throw new IllegalStateException("Started");
this._roles = roles;
}
/* ------------------------------------------------------------ */