@Immutable public class DefaultUserTokenHandler extends Object implements UserTokenHandler
UserTokenHandler. This class will use an instance of
Principalas a state object for HTTP connections, if it can be obtained from the given execution context. This helps ensure persistent connections created with a particular user identity within a particular security context can be reused by the same user only.
DefaultUserTokenHandler will use the user principle of connection
based authentication schemes such as NTLM or that of the SSL session
with the client authentication turned on. If both are unavailable,
null token will be returned.
|Modifier and Type||Field and Description|
|Constructor and Description|
|Modifier and Type||Method and Description|
The token object returned by this method is expected to uniquely identify the current user if the context is user specific or to be
public static final DefaultUserTokenHandler INSTANCE
public Object getUserToken(HttpContext context)
nullif it is not.
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.