private boolean isValid(String subject) { String parts[] = subject.split("\\."); if (!parts[0].endsWith("*")) { // not a wildcard return true; } return parts.length >= 3 && AbstractVerifier.acceptableCountryWildcard(subject); }
private boolean isValid(String subject) { String parts[] = subject.split("\\."); // not a wildcard return !parts[0].endsWith("*") || parts.length >= 3 && AbstractVerifier.acceptableCountryWildcard(subject); }