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. If a target authentication state has no principal, the proxy authentication state must be present. If no authentication principal is found, the managed connection must be present.

Returns

A principal from completed connection-based authentication, or the local SSL principal of an open connection if no authentication principal was found; null if neither supplies a principal. The proxy state is checked only when the target state is present.

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