private void CheckExcludedEmail(ISet excluded, String email)
//throws PkixNameConstraintValidatorException
{
if (excluded.IsEmpty)
{
return;
}
IEnumerator it = excluded.GetEnumerator();
while (it.MoveNext())
{
String str = (String)it.Current;
if (EmailIsConstrained(email, str))
{
throw new PkixNameConstraintValidatorException(
"Email address is from an excluded subtree.");
}
}
}