protected boolean hostMatches ( String registered , String requested ) { if ( matchSubdomains ) { return registered . equals ( requested ) || requested . endsWith ( "." + registered ) ; } return registered . equals ( requested ) ; }
Check if host matches the registered value .