Language

DefaultUserTokenHandler.GetUserToken(IHttpContext) Method

Definition

Derives a user token from authentication or the SSL session.

[Android.Runtime.Register("getUserToken", "(Lorg/apache/http/protocol/HttpContext;)Ljava/lang/Object;", "GetGetUserToken_Lorg_apache_http_protocol_HttpContext_Handler")]
public virtual Java.Lang.Object? GetUserToken(Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("getUserToken", "(Lorg/apache/http/protocol/HttpContext;)Ljava/lang/Object;", "GetGetUserToken_Lorg_apache_http_protocol_HttpContext_Handler")>]
abstract member GetUserToken : Org.Apache.Http.Protocol.IHttpContext -> Java.Lang.Object
override this.GetUserToken : Org.Apache.Http.Protocol.IHttpContext -> Java.Lang.Object

Parameters

context
IHttpContext

The execution context that holds authentication states and the managed connection.

Returns

A principal from completed connection-based authentication, or the local SSL principal if no authentication principal was found; null if neither supplies a principal.

Implements

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