public class

UsernamePasswordCredentials

extends Object
implements Serializable Credentials
java.lang.Object
   ↳ org.apache.http.auth.UsernamePasswordCredentials

Class Overview

Simple Credentials implementation based on a user name / password pair.

Summary

Public Constructors
UsernamePasswordCredentials(String usernamePassword)
The constructor with the username and password combined string argument.
UsernamePasswordCredentials(String userName, String password)
The constructor with the username and password arguments.
Public Methods
boolean equals(Object o)
String getPassword()
String getUserName()
Principal getUserPrincipal()
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.http.auth.Credentials

Public Constructors

public UsernamePasswordCredentials (String usernamePassword)

Also: HttpClient

The constructor with the username and password combined string argument.

Parameters
usernamePassword the username:password formed string
See Also

public UsernamePasswordCredentials (String userName, String password)

Also: HttpClient

The constructor with the username and password arguments.

Parameters
userName the user name
password the password

Public Methods

public boolean equals (Object o)

public String getPassword ()

Also: HttpClient

public String getUserName ()

Also: HttpClient

public Principal getUserPrincipal ()

Also: HttpClient

public int hashCode ()

public String toString ()