question: @ Override public boolean domainMatch ( final String host , String domain ) { if ( host . equals ( domain ) ) { return true ; } if ( ! domain . startsWith ( "." ) ) { domain = "." + domain ; } return host . endsWith ( domain ) || host . equals ( domain . substring ( 1 ) ) ; }
target:  Performs domain-match as implemented in common browsers.