Skip to content

Most visited

Recently visited

navigation

AuthSchemeBase | Android Developers

to top
Android APIs
public abstract class

AuthSchemeBase

extends Object
implements AuthScheme
java.lang.Object
   ↳ org.apache.http.impl.auth.AuthSchemeBase
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Abstract authentication scheme class that serves as a basis for all authentication schemes supported by HttpClient. This class defines the generic way of parsing an authentication challenge. It does not make any assumptions regarding the format of the challenge nor does it impose any specific way of responding to that challenge.

Summary

Public Constructors
AuthSchemeBase()
Public Methods
boolean isProxy()
Returns true if authenticating against a proxy, false otherwise.
void processChallenge(Header header)
Processes the given challenge token.
Protected Methods
abstract void parseChallenge(CharArrayBuffer buffer, int pos, int len)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.http.auth.AuthScheme

Public Constructors

public AuthSchemeBase ()

Added in API level 1

Public Methods

public boolean isProxy ()

Added in API level 1

Returns true if authenticating against a proxy, false otherwise.

Returns
  • true if authenticating against a proxy, false otherwise

public void processChallenge (Header header)

Added in API level 1

Processes the given challenge token. Some authentication schemes may involve multiple challenge-response exchanges. Such schemes must be able to maintain the state information when dealing with sequential challenges

Parameters
header the challenge header
Throws
MalformedChallengeException is thrown if the authentication challenge is malformed

Protected Methods

protected abstract void parseChallenge (CharArrayBuffer buffer, int pos, int len)

Added in API level 1
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.

Take a one-minute survey?
Help us improve Android tools and documentation.