@Private
public class JspHelper
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
CURRENT_CONF |
|
static java.lang.String |
DELEGATION_PARAMETER_NAME |
|
static java.lang.String |
NAMENODE_ADDRESS |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
checkUsername(java.lang.String expected,
java.lang.String name) |
Expected user name should be a short name.
|
static java.lang.String |
getDefaultWebUserName(org.apache.hadoop.conf.Configuration conf) |
|
static java.lang.String |
getRemoteAddr(javax.servlet.http.HttpServletRequest request) |
|
static int |
getRemotePort(javax.servlet.http.HttpServletRequest request) |
|
static org.apache.hadoop.security.UserGroupInformation |
getUGI(javax.servlet.http.HttpServletRequest request,
org.apache.hadoop.conf.Configuration conf) |
Same as getUGI(null, request, conf).
|
static org.apache.hadoop.security.UserGroupInformation |
getUGI(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
org.apache.hadoop.conf.Configuration conf) |
Same as getUGI(context, request, conf, KERBEROS_SSL, true).
|
static org.apache.hadoop.security.UserGroupInformation |
getUGI(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod secureAuthMethod,
boolean tryUgiParameter) |
Get
UserGroupInformation and possibly the delegation token out of
the request. |
public static final java.lang.String CURRENT_CONF
public static final java.lang.String DELEGATION_PARAMETER_NAME
public static final java.lang.String NAMENODE_ADDRESS
public static java.lang.String getDefaultWebUserName(org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
java.io.IOExceptionpublic static org.apache.hadoop.security.UserGroupInformation getUGI(javax.servlet.http.HttpServletRequest request,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
java.io.IOExceptionpublic static org.apache.hadoop.security.UserGroupInformation getUGI(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
java.io.IOExceptionpublic static org.apache.hadoop.security.UserGroupInformation getUGI(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod secureAuthMethod,
boolean tryUgiParameter)
throws java.io.IOException
UserGroupInformation and possibly the delegation token out of
the request.context - the ServletContext that is serving this request.request - the http requestconf - configurationsecureAuthMethod - the AuthenticationMethod used in secure mode.tryUgiParameter - Should it try the ugi parameter?org.apache.hadoop.security.AccessControlException - if the request has no tokenjava.io.IOExceptionpublic static java.lang.String getRemoteAddr(javax.servlet.http.HttpServletRequest request)
public static int getRemotePort(javax.servlet.http.HttpServletRequest request)
public static void checkUsername(java.lang.String expected,
java.lang.String name)
throws java.io.IOException
java.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.