Skip to content

Most visited

Recently visited

navigation

CredentialsProvider | Android Developers

to top
Android APIs
Added in API level 1
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.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.