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

org.apache.http.auth

The API for client-side HTTP authentication against a server, commonly referred to as HttpAuth .

Interfaces

AuthScheme

This interface represents an abstract challenge-response oriented authentication scheme. 

AuthSchemeFactory  
Credentials User name and password based authentication credentials. 

Classes

AUTH Constants and static helpers related to the HTTP authentication. 
AuthSchemeRegistry Authentication scheme registry that can be used to obtain the corresponding authentication scheme implementation for a given type of authorization challenge. 
AuthScope The class represents an authentication scope consisting of a host name, a port number, a realm name and an authentication scheme name which Credentials apply to. 
AuthState This class provides detailed information about the state of the authentication process. 
BasicUserPrincipal Basic user principal used for HTTP authentication 
NTCredentials Credentials specific to the Windows platform. 
NTUserPrincipal NT (MS Windows specific) user principal used for HTTP authentication 
UsernamePasswordCredentials Username and password Credentials  

Exceptions

AuthenticationException Signals a failure in authentication process 
InvalidCredentialsException Authentication credentials required to respond to a authentication challenge are invalid 
MalformedChallengeException Signals that authentication challenge is in some way invalid or illegal in the given context