Package org.htmlunit.httpclient
Class HtmlUnitUsernamePasswordCredentials
java.lang.Object
org.htmlunit.httpclient.HtmlUnitUsernamePasswordCredentials
- All Implemented Interfaces:
Serializable
,org.apache.http.auth.Credentials
public class HtmlUnitUsernamePasswordCredentials
extends Object
implements org.apache.http.auth.Credentials, Serializable
Wrapper for
UsernamePasswordCredentials
to avoid direct references spread around.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.http.auth.UsernamePasswordCredentials
-
Constructor Summary
ConstructorsConstructorDescriptionHtmlUnitUsernamePasswordCredentials
(String userName, char[] password) The constructor with the username and password arguments.HtmlUnitUsernamePasswordCredentials
(String userName, String password) Deprecated.as of version 3.4.0; use HtmlUnitUsernamePasswordCredentials(String, char[]) instead -
Method Summary
-
Field Details
-
httpClientUsernamePasswordCredentials_
private final org.apache.http.auth.UsernamePasswordCredentials httpClientUsernamePasswordCredentials_
-
-
Constructor Details
-
HtmlUnitUsernamePasswordCredentials
Deprecated.as of version 3.4.0; use HtmlUnitUsernamePasswordCredentials(String, char[]) insteadThe constructor with the username and password arguments.- Parameters:
userName
- the user namepassword
- the password
-
HtmlUnitUsernamePasswordCredentials
The constructor with the username and password arguments.- Parameters:
userName
- the user namepassword
- the password
-
-
Method Details
-
getPassword
- Specified by:
getPassword
in interfaceorg.apache.http.auth.Credentials
-
getUserPrincipal
- Specified by:
getUserPrincipal
in interfaceorg.apache.http.auth.Credentials
-
hashCode
public int hashCode() -
equals
-
toString
-