public class HTTPBasicProvider
extends java.lang.Object
implements org.apache.http.client.CredentialsProvider, org.apache.http.auth.Credentials, java.io.Serializable
| Constructor and Description |
|---|
HTTPBasicProvider(java.lang.String username,
java.lang.String password) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
org.apache.http.auth.Credentials |
getCredentials(org.apache.http.auth.AuthScope scope) |
java.lang.String |
getPassword() |
java.security.Principal |
getUserPrincipal() |
void |
setCredentials(org.apache.http.auth.AuthScope authscope,
org.apache.http.auth.Credentials credentials) |
public HTTPBasicProvider(java.lang.String username,
java.lang.String password)
public org.apache.http.auth.Credentials getCredentials(org.apache.http.auth.AuthScope scope)
getCredentials in interface org.apache.http.client.CredentialsProviderpublic void setCredentials(org.apache.http.auth.AuthScope authscope,
org.apache.http.auth.Credentials credentials)
setCredentials in interface org.apache.http.client.CredentialsProviderpublic void clear()
clear in interface org.apache.http.client.CredentialsProviderpublic java.security.Principal getUserPrincipal()
getUserPrincipal in interface org.apache.http.auth.Credentialspublic java.lang.String getPassword()
getPassword in interface org.apache.http.auth.Credentials