AuthenticationData Class

Definition

Contains all the information required to perform pre-authentication of HTTP requests. See AndroidMessageHandler.

public class AuthenticationData
type AuthenticationData = class
Inheritance
AuthenticationData

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

AuthenticationData()

Properties

AuthModule

If the Scheme property is set to AuthenticationScheme.Unsupported, this property must be set to an instance of a class that implements the IAndroidAuthenticationModule interface and which understands the authentication challenge contained in the Challenge property.

Challenge

Contains the full authentication challenge (full value of the WWW-Authenticate HTTP header). This information can be used by the custom authentication module (AuthModule)

Scheme

Gets the authentication scheme. If instance of AuthenticationData comes from the RequestedAuthentication collection it will have this property set to the type of authentication as requested by the server, or to AuthenticationScheme.Unsupported/>. In the latter case the application is required to provide the authentication module in AuthModule.

UseProxyAuthentication

Indicates whether authentication performed using data in this instance should be done for the end server or a proxy. If instance of AuthenticationData comes from the RequestedAuthentication collection it will have this property set to true if authentication request came from a proxy, false otherwise.

Applies to