Also: HttpClient
public interface

CredentialsProvider

org.apache.http.client.CredentialsProvider
Known Indirect Subclasses

Class Overview

Abstract credentials provider that maintains a collection of user credentials.

Implementations of this interface must be thread-safe. Access to shared data must be synchronized as methods of this interface may be executed from multiple threads.

Summary

Public Methods
abstract void clear()
Clears all credentials.
abstract Credentials getCredentials(AuthScope authscope)
Get the credentials for the given authentication scope.
abstract void setCredentials(AuthScope authscope, Credentials credentials)
Sets the credentials for the given authentication scope.

Public Methods

public abstract void clear ()

Also: HttpClient

Clears all credentials.

public abstract Credentials getCredentials (AuthScope authscope)

Also: HttpClient

Get the credentials for the given authentication scope.

Parameters
authscope the authentication scope
Returns
  • the credentials

public abstract 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.