@Override
        public boolean equals(final Object obj) {
            if (this == obj) {
                return true;
            }
            if (obj instanceof Key) {
                final Key that = (Key) obj;
                return this.scheme.equals(that.scheme) &&
                        this.host.equals(that.host) &&
                        this.port == that.port &&
                        Objects.equals(this.pathPrefix, that.pathPrefix);
            }
            return false;
        }
Default implementation of {@link AuthCache}. This implements
expects {@link AuthScheme} to be {@link Serializable}
in order to be cacheable.
<p>
Instances of this class are thread safe as of version 4.4.
</p>

@since 4.1
httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/BasicAuthCache.java