public class

BasicCredentialsProvider

extends Object
implements CredentialsProvider
java.lang.Object
   ↳ org.apache.http.impl.client.BasicCredentialsProvider

Class Overview

Default implementation of CredentialsProvider.

Summary

Public Constructors
BasicCredentialsProvider()
Default constructor.
Public Methods
void clear()
Clears all credentials.
Credentials getCredentials(AuthScope authscope)
Get the credentials for the given authentication scope.
void setCredentials(AuthScope authscope, Credentials credentials)
Sets the credentials for the given authentication scope.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.http.client.CredentialsProvider

Public Constructors

public BasicCredentialsProvider ()

Also: HttpClient

Default constructor.

Public Methods

public void clear ()

Also: HttpClient

Clears all credentials.

public Credentials getCredentials (AuthScope authscope)

Also: HttpClient

Get the credentials for the given authentication scope.

Parameters
authscope the authentication scope
Returns
  • the credentials

public void setCredentials (AuthScope authscope, Credentials credentials)

Also: HttpClient

Sets the credentials for the given authentication scope. Any previous credentials for the given scope will be overwritten.

Parameters
authscope the authentication scope
credentials the authentication credentials for the given scope.

public String toString ()