Language

DefaultTargetAuthenticationHandler.IsAuthenticationRequested Method

Definition

Determines whether the response requests target authentication.

[Android.Runtime.Register("isAuthenticationRequested", "(Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)Z", "GetIsAuthenticationRequested_Lorg_apache_http_HttpResponse_Lorg_apache_http_protocol_HttpContext_Handler")]
public override bool IsAuthenticationRequested(Org.Apache.Http.IHttpResponse? response, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("isAuthenticationRequested", "(Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)Z", "GetIsAuthenticationRequested_Lorg_apache_http_HttpResponse_Lorg_apache_http_protocol_HttpContext_Handler")>]
override this.IsAuthenticationRequested : Org.Apache.Http.IHttpResponse * Org.Apache.Http.Protocol.IHttpContext -> bool

Parameters

response
IHttpResponse

The response whose status code is to be checked.

context
IHttpContext

The execution context. This implementation does not read it.

Returns

true for status code 401; otherwise, false.

Attributes

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.

Applies to