Skip to content

Most visited

Recently visited


org.apache.http.auth | Android Developers

to top
Android APIs
Added in API level 1


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



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

Credentials User name and password based authentication credentials. 


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 


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 
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

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.