"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient5/src/main/java/org/apache/hc/client5/http/auth/NTCredentials.java" between
httpcomponents-client-5.2-src.tar.gz and httpcomponents-client-5.2.1-src.tar.gz

About: Apache HttpComponents Client provides reusable components for client-side authentication, HTTP state management, and HTTP connection management. Java sources.

NTCredentials.java  (httpcomponents-client-5.2-src):NTCredentials.java  (httpcomponents-client-5.2.1-src)
skipping to change at line 32 skipping to change at line 32
* individuals on behalf of the Apache Software Foundation. For more * individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see * information on the Apache Software Foundation, please see
* <http://www.apache.org/>. * <http://www.apache.org/>.
* *
*/ */
package org.apache.hc.client5.http.auth; package org.apache.hc.client5.http.auth;
import java.io.Serializable; import java.io.Serializable;
import java.security.Principal; import java.security.Principal;
import java.util.Locale; import java.util.Locale;
import java.util.Objects;
import org.apache.hc.core5.annotation.Contract; import org.apache.hc.core5.annotation.Contract;
import org.apache.hc.core5.annotation.ThreadingBehavior; import org.apache.hc.core5.annotation.ThreadingBehavior;
import org.apache.hc.core5.util.Args; import org.apache.hc.core5.util.Args;
import org.apache.hc.core5.util.LangUtils; import org.apache.hc.core5.util.LangUtils;
/** /**
* Microsoft Windows specific {@link Credentials} representation that includes * Microsoft Windows specific {@link Credentials} representation that includes
* Windows specific attributes such as name of the domain the user belongs to. * Windows specific attributes such as name of the domain the user belongs to.
* *
skipping to change at line 162 skipping to change at line 163
return hash; return hash;
} }
@Override @Override
public boolean equals(final Object o) { public boolean equals(final Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
if (o instanceof NTCredentials) { if (o instanceof NTCredentials) {
final NTCredentials that = (NTCredentials) o; final NTCredentials that = (NTCredentials) o;
return LangUtils.equals(this.principal, that.principal) return Objects.equals(this.principal, that.principal)
&& LangUtils.equals(this.workstation, that.workstation) && Objects.equals(this.workstation, that.workstation)
&& LangUtils.equals(this.netbiosDomain, that.netbiosDomain); && Objects.equals(this.netbiosDomain, that.netbiosDomain);
} }
return false; return false;
} }
@Override @Override
public String toString() { public String toString() {
final StringBuilder buffer = new StringBuilder(); final StringBuilder buffer = new StringBuilder();
buffer.append("[principal: "); buffer.append("[principal: ");
buffer.append(this.principal); buffer.append(this.principal);
buffer.append("][workstation: "); buffer.append("][workstation: ");
 End of changes. 2 change blocks. 
3 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)