/** * Checks if a given host name / address matches the entry's host pattern(s) * * @param host The host name / address - ignored if {@code null}/empty * @param port The connection port * @return {@code true} if the name / address matches the pattern(s) * @see #isHostMatch(String, Pattern) */ public boolean isHostMatch(String host, int port) { return isHostMatch(host, port, getPatterns()); }
/** * Checks if a given host name / address matches the entry's host pattern(s) * * @param host The host name / address - ignored if {@code null}/empty * @param port The connection port * @return {@code true} if the name / address matches the pattern(s) * @see #isHostMatch(String, Pattern) */ public boolean isHostMatch(String host, int port) { return isHostMatch(host, port, getPatterns()); }
@Override public boolean isHostMatch(String host, int port) { if (super.isHostMatch(host, port)) { return true; } KnownHostHashValue hash = getHashedEntry(); return (hash != null) && hash.isHostMatch(host); }
@Override public boolean isHostMatch(String host, int port) { if (super.isHostMatch(host, port)) { return true; } KnownHostHashValue hash = getHashedEntry(); return (hash != null) && hash.isHostMatch(host, port); }
if (!isHostMatch(host, pv.getPattern())) { continue;
if (!isHostMatch(host, pv.getPattern())) { continue;