Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public interface

CredentialsProvider

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

Class Overview

Abstract credentials provider.

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 ()

Added in API level 1

Clears all credentials.

public abstract Credentials getCredentials ( AuthScope authscope)

Added in API level 1

Get the credentials for the given authentication scope.

Parameters
authscope the authentication scope
Returns
  • the credentials

public abstract void setCredentials ( AuthScope authscope, Credentials credentials)

Added in API level 1

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.