private void checkExcludedURI(ISet excluded, String uri)
// throws PkixNameConstraintValidatorException
{
if (excluded.IsEmpty)
{
return;
}
IEnumerator it = excluded.GetEnumerator();
while (it.MoveNext())
{
String str = ((String)it.Current);
if (IsUriConstrained(uri, str))
{
throw new PkixNameConstraintValidatorException(
"URI is from an excluded subtree.");
}
}
}