use of com.github.zhenwei.core.asn1.x509.GeneralSubtree in project LinLong-Java by zhenwei1108.
the class PKIXNameConstraintValidator method intersectEmail.
private Set intersectEmail(Set permitted, Set emails) {
Set intersect = new HashSet();
for (Iterator it = emails.iterator(); it.hasNext(); ) {
String email = extractNameAsString(((GeneralSubtree) it.next()).getBase());
if (permitted == null) {
if (email != null) {
intersect.add(email);
}
} else {
Iterator it2 = permitted.iterator();
while (it2.hasNext()) {
String _permitted = (String) it2.next();
intersectEmail(email, _permitted, intersect);
}
}
}
return intersect;
}
Aggregations