Package org.apache.commons.httpclient
Class UsernamePasswordCredentials
java.lang.Object
org.apache.commons.httpclient.UsernamePasswordCredentials
- All Implemented Interfaces:
Credentials
- Direct Known Subclasses:
NTCredentials
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.
Username and password Credentials.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Do not use.UsernamePasswordCredentials(String usernamePassword) Deprecated.The constructor with the username and password combined string argument.UsernamePasswordCredentials(String userName, String password) Deprecated.The constructor with the username and password arguments. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.These credentials are assumed equal if the username and password are the same.Deprecated.Password property getter.Deprecated.User name property getter.inthashCode()Deprecated.Does a hash of both user name and password.voidsetPassword(String password) Deprecated.Do not use.voidsetUserName(String userName) Deprecated.Do not use.toString()Deprecated.Get this object string.
-
Constructor Details
-
UsernamePasswordCredentials
public UsernamePasswordCredentials()Deprecated.Do not use. Null user name no longer allowedDefault constructor. -
UsernamePasswordCredentials
Deprecated.The constructor with the username and password combined string argument.- Parameters:
usernamePassword- the username:password formed string- See Also:
-
UsernamePasswordCredentials
Deprecated.The constructor with the username and password arguments.- Parameters:
userName- the user namepassword- the password
-
-
Method Details
-
setUserName
Deprecated.Do not use. The UsernamePasswordCredentials objects should be immutableUser name property setter. User name may not be null.- Parameters:
userName-- See Also:
-
getUserName
Deprecated.User name property getter.- Returns:
- the userName
- See Also:
-
setPassword
Deprecated.Do not use. The UsernamePasswordCredentials objects should be immutablePassword property setter.- Parameters:
password-- See Also:
-
getPassword
Deprecated.Password property getter.- Returns:
- the password
- See Also:
-
toString
Deprecated.Get this object string. -
hashCode
public int hashCode()Deprecated.Does a hash of both user name and password. -
equals
Deprecated.These credentials are assumed equal if the username and password are the same.
-