@Override
    public int hashCode() {
        int hash = LangUtils.HASH_SEED;
        hash = LangUtils.hashCode(hash, this.protocol);
        hash = LangUtils.hashCode(hash, this.host);
        hash = LangUtils.hashCode(hash, this.port);
        hash = LangUtils.hashCode(hash, this.realm);
        hash = LangUtils.hashCode(hash, this.schemeName);
        return hash;
    }
Tests if the authentication scopes match.

@return the match factor. Negative value signifies no match.
   Non-negative signifies a match. The greater the returned value
   the closer the match.
httpclient5/src/main/java/org/apache/hc/client5/http/auth/AuthScope.java