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.- Author:
- Ronald Brill, Lai Quang Duong
- See Also:
-
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
-
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:
getPasswordin interfaceorg.apache.http.auth.Credentials
-
getUserPrincipal
- Specified by:
getUserPrincipalin interfaceorg.apache.http.auth.Credentials
-
hashCode
-
equals
-
toString
-