Package org.apache.commons.httpclient
Class NTCredentials
java.lang.Object
org.apache.commons.httpclient.UsernamePasswordCredentials
org.apache.commons.httpclient.NTCredentials
- All Implemented Interfaces:
Credentials
Deprecated.
Jakarta Commons HttpClient 3.x is deprecated in the Jenkins project.
It is not recommended to use it in any new code.
Instead, use HTTP client API plugins as a dependency in your code.
E.g.
Apache HttpComponents Client API 4.x Plugin or
Async HTTP Client Plugin.
Credentials
for use with the NTLM authentication scheme which requires additional
information.- Since:
- 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Do not use.NTCredentials
(String userName, String password, String host, String domain) Deprecated.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Performs a case-sensitive check to see if the components of the credentials are the same.Deprecated.Retrieves the name to authenticate with.getHost()
Deprecated.Retrieves the host name of the computer originating the request.int
hashCode()
Deprecated.Computes a hash code based on all the case-sensitive parts of the credentials object.void
Deprecated.Do not use.void
Deprecated.Do not use.toString()
Deprecated.Return a string representation of this object.Methods inherited from class org.apache.commons.httpclient.UsernamePasswordCredentials
getPassword, getUserName, setPassword, setUserName
-
Constructor Details
-
NTCredentials
public NTCredentials()Deprecated.Do not use. Null user name, domain invalid input: '&' host no longer allowedDefault constructor. -
NTCredentials
Deprecated.Constructor.- Parameters:
userName
- The user name. This should not include the domain to authenticate with. For example: "user" is correct whereas "DOMAIN\\user" is not.password
- The password.host
- The host the authentication request is originating from. Essentially, the computer name for this machine.domain
- The domain to authenticate within.
-
-
Method Details
-
setDomain
Deprecated.Do not use. The NTCredentials objects should be immutableSets the domain to authenticate with. The domain may not be null.- Parameters:
domain
- the NT domain to authenticate in.- See Also:
-
getDomain
Deprecated.Retrieves the name to authenticate with.- Returns:
- String the domain these credentials are intended to authenticate with.
- See Also:
-
setHost
Deprecated.Do not use. The NTCredentials objects should be immutableSets the host name of the computer originating the request. The host name may not be null.- Parameters:
host
- the Host the user is logged into.
-
getHost
Deprecated.Retrieves the host name of the computer originating the request.- Returns:
- String the host the user is logged into.
-
toString
Deprecated.Return a string representation of this object.- Overrides:
toString
in classUsernamePasswordCredentials
- Returns:
- A string represenation of this object.
-
hashCode
public int hashCode()Deprecated.Computes a hash code based on all the case-sensitive parts of the credentials object.- Overrides:
hashCode
in classUsernamePasswordCredentials
- Returns:
- The hash code for the credentials.
-
equals
Deprecated.Performs a case-sensitive check to see if the components of the credentials are the same.- Overrides:
equals
in classUsernamePasswordCredentials
- Parameters:
o
- The object to match.- Returns:
true
if all of the credentials match.
-