@InterfaceAudience.Private public class ThriftHttpServlet extends org.apache.thrift.server.TServlet
Modifier and Type | Class and Description |
---|---|
private static class |
ThriftHttpServlet.HttpKerberosServerAction |
private static class |
ThriftHttpServlet.RemoteUserIdentity
Basic "struct" class to hold the final base64-encoded, authenticated GSSAPI token for the user
with the given principal talking to the Thrift server.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
doAsEnabled |
private HBaseServiceHandler |
handler |
private org.apache.hadoop.security.UserGroupInformation |
httpUGI |
private static org.slf4j.Logger |
LOG |
static String |
NEGOTIATE |
private boolean |
securityEnabled |
private static long |
serialVersionUID |
private org.apache.hadoop.security.UserGroupInformation |
serviceUGI |
Constructor and Description |
---|
ThriftHttpServlet(org.apache.thrift.TProcessor processor,
org.apache.thrift.protocol.TProtocolFactory protocolFactory,
org.apache.hadoop.security.UserGroupInformation serviceUGI,
org.apache.hadoop.security.UserGroupInformation httpUGI,
HBaseServiceHandler handler,
boolean securityEnabled,
boolean doAsEnabled) |
Modifier and Type | Method and Description |
---|---|
private ThriftHttpServlet.RemoteUserIdentity |
doKerberosAuth(javax.servlet.http.HttpServletRequest request)
Do the GSS-API kerberos authentication.
|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
addCustomHeader, doGet, setCustomHeaders
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
private static final long serialVersionUID
private static final org.slf4j.Logger LOG
private final transient org.apache.hadoop.security.UserGroupInformation serviceUGI
private final transient org.apache.hadoop.security.UserGroupInformation httpUGI
private final transient HBaseServiceHandler handler
private final boolean doAsEnabled
private final boolean securityEnabled
public static final String NEGOTIATE
public ThriftHttpServlet(org.apache.thrift.TProcessor processor, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.hadoop.security.UserGroupInformation serviceUGI, org.apache.hadoop.security.UserGroupInformation httpUGI, HBaseServiceHandler handler, boolean securityEnabled, boolean doAsEnabled)
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPost
in class org.apache.thrift.server.TServlet
javax.servlet.ServletException
IOException
private ThriftHttpServlet.RemoteUserIdentity doKerberosAuth(javax.servlet.http.HttpServletRequest request) throws HttpAuthenticationException
HttpAuthenticationException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.