UserTokenHandler. This class will use
an instance of Principal as 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 principal 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 |
|---|---|
| public static final DefaultUserTokenHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static Principal | |
| public Object | getUserToken(final HttpRoute
HTTP route route, final HttpContext the execution context context)Implements org. null if it is not.
|
| public Object | getUserToken(final HttpRoute
HTTP route route, final HttpRequest HTTP request request, final HttpContext the execution context context)Overrides default org. null if it is not.
|
| INSTANCE | back to summary |
|---|---|
| public static final DefaultUserTokenHandler INSTANCE | |
| DefaultUserTokenHandler | back to summary |
|---|---|
| public DefaultUserTokenHandler() | |
| getAuthPrincipal | back to summary |
|---|---|
| private static Principal getAuthPrincipal(final AuthExchange authExchange) | |
| getUserToken | back to summary |
|---|---|
| public Object getUserToken(final HttpRoute route, final HttpContext context) Implements org. Doc from org. The token object returned by this method is expected to uniquely
identify the current user if the context is user specific or to be
| |
| getUserToken | back to summary |
|---|---|
| public Object getUserToken(final HttpRoute route, final HttpRequest request, final HttpContext context) Overrides default org. Doc from org. The token object returned by this method is expected to uniquely
identify the current user if the context is user specific or to be
| |