@Override public boolean domainMatch(final String host,final String domain){
  final boolean match=host.equals(domain) || (domain.startsWith(".") && host.endsWith(domain));
  return match;
}

@ Override public boolean domainMatch ( final String host , final String domain ) { final boolean match = host . equals ( domain ) || ( domain . startsWith ( "." ) && host . endsWith ( domain ) ) ; return match ; }
performs domain - match as defined by the rfc2109 .
