Skip to content

Most visited

Recently visited

navigation

UserTokenHandler | Android Developers

to top
Android APIs
Added in API level 1
public interface

UserTokenHandler

org.apache.http.client.UserTokenHandler
Known Indirect Subclasses

Class Overview

A handler for determining if the given execution context is user specific or not. The token object returned by this handler is expected to uniquely identify the current user if the context is user specific or to be null if the context does not contain any resources or details specific to the current user.

The user token will be used to ensure that user specific resouces will not shared with or reused by other users.

Summary

Public Methods
abstract Object getUserToken(HttpContext context)
The token object returned by this method is expected to uniquely identify the current user if the context is user specific or to be null if it is not.

Public Methods

public abstract Object getUserToken (HttpContext context)

Added in API level 1

The token object returned by this method is expected to uniquely identify the current user if the context is user specific or to be null if it is not.

Parameters
context the execution context
Returns
  • user token that uniquely identifies the user or null if the context is not user specific.
This site uses cookies to store your preferences for site-specific language and display options.

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.