public class BasicCredentials extends Object implements ICredentials
| Constructor and Description |
|---|
BasicCredentials(String username,
String password)
Creates new basic HTTP credentials.
|
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(org.apache.http.HttpRequest req)
Sets the Authorization header for the given request.
|
String |
getLogonName()
Gets the logon name representing these credentials.
|
public void authenticate(org.apache.http.HttpRequest req)
authenticate in interface ICredentialsreq - HTTP request to authenticatepublic String getLogonName()
getLogonName in interface ICredentialsCopyright © 2014. All Rights Reserved.