@Override
    public boolean equals(final Object o) {
        if (this == o) {
            return true;
        }
        if (o instanceof NTUserPrincipal) {
            final NTUserPrincipal that = (NTUserPrincipal) o;
            return Objects.equals(this.username, that.username)
                    && Objects.equals(this.domain, that.domain);
        }
        return false;
    }
Microsoft Windows specific user principal implementation.

@since 4.0
httpclient5/src/main/java/org/apache/hc/client5/http/auth/NTUserPrincipal.java