Top Description Methods
org.apache.http.client

public Interface CredentialsProvider

Known Direct Implementers
org.apache.http.impl.client.BasicCredentialsProvider, org.apache.http.impl.client.SystemDefaultCredentialsProvider
Imports
org.apache.http.auth.AuthScope, .Credentials

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.

Since
4.0

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Clears all credentials.

public Credentials

Returns:

the credentials
getCredentials
(AuthScope authscope)

Get the credentials for the given authentication scope.

public void
setCredentials(AuthScope authscope, Credentials
the authentication credentials for the given scope.
credentials
)

Sets the credentials for the given authentication scope.

Method Detail

clearback to summary
public void clear()

Clears all credentials.

getCredentialsback to summary
public Credentials getCredentials(AuthScope authscope)

Get the credentials for the given authentication scope.

Parameters
authscope:AuthScope

the authentication scope

Returns:Credentials

the credentials

See Also
setCredentials(AuthScope, Credentials)
setCredentialsback to summary
public void setCredentials(AuthScope authscope, Credentials credentials)

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

Parameters
authscope:AuthScope

the authentication scope

credentials:Credentials

the authentication credentials for the given scope.

See Also
getCredentials(AuthScope)