@InterfaceAudience.Private
@InterfaceStability.Unstable
public class TimelineClientAuthenticationService
extends org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler
AuthenticationHandler that authenticates requests
using the incoming delegation token as a 'delegation' query string parameter.
If not delegation token is present in the request it delegates to the
KerberosAuthenticationHandler| Constructor and Description |
|---|
TimelineClientAuthenticationService() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.security.authentication.server.AuthenticationToken |
authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Authenticates a request looking for the
delegation
query-string parameter and verifying it is a valid token. |
String |
getType()
Returns authentication type of the handler.
|
boolean |
managementOperation(org.apache.hadoop.security.authentication.server.AuthenticationToken token,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
public static final String TYPE
public String getType()
getType in interface org.apache.hadoop.security.authentication.server.AuthenticationHandlergetType in class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandlerdelegationtoken-kerberospublic boolean managementOperation(org.apache.hadoop.security.authentication.server.AuthenticationToken token,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
org.apache.hadoop.security.authentication.client.AuthenticationException
managementOperation in interface org.apache.hadoop.security.authentication.server.AuthenticationHandlermanagementOperation in class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandlerIOExceptionorg.apache.hadoop.security.authentication.client.AuthenticationExceptionpublic org.apache.hadoop.security.authentication.server.AuthenticationToken authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
org.apache.hadoop.security.authentication.client.AuthenticationException
delegation
query-string parameter and verifying it is a valid token. If there is not
delegation query-string parameter, it delegates the
authentication to the KerberosAuthenticationHandler unless it is
disabled.authenticate in interface org.apache.hadoop.security.authentication.server.AuthenticationHandlerauthenticate in class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandlerrequest - the HTTP client request.response - the HTTP client response.IOException - thrown if an IO error occurred.org.apache.hadoop.security.authentication.client.AuthenticationException - thrown if the authentication failed.Copyright © 2014 Apache Software Foundation. All Rights Reserved.