Tabnine Logo
JspHelper.getDefaultWebUserName
Code IndexAdd Tabnine to your IDE (free)

How to use
getDefaultWebUserName
method
in
org.apache.hadoop.hdfs.server.common.JspHelper

Best Java code snippets using org.apache.hadoop.hdfs.server.common.JspHelper.getDefaultWebUserName (Showing top 6 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

final String doAsUserFromQuery = params.doAsUser();
final String remoteUser = usernameFromQuery == null ? JspHelper
  .getDefaultWebUserName(params.conf()) // not specified in request
  : usernameFromQuery;
origin: org.apache.hadoop/hadoop-hdfs

? getDefaultWebUserName(conf) // not specified in request
: usernameFromQuery;
origin: ch.cern.hadoop/hadoop-hdfs

? getDefaultWebUserName(conf) // not specified in request
: usernameFromQuery;
origin: ch.cern.hadoop/hadoop-hdfs

UserGroupInformation ugi() throws IOException {
 if (UserGroupInformation.isSecurityEnabled()) {
  return tokenUGI();
 }
 final String usernameFromQuery = params.userName();
 final String doAsUserFromQuery = params.doAsUser();
 final String remoteUser = usernameFromQuery == null
   ? JspHelper.getDefaultWebUserName(params.conf()) // not specified in
   // request
   : usernameFromQuery;
 UserGroupInformation ugi = UserGroupInformation.createRemoteUser(remoteUser);
 JspHelper.checkUsername(ugi.getShortUserName(), usernameFromQuery);
 if (doAsUserFromQuery != null) {
  // create and attempt to authorize a proxy user
  ugi = UserGroupInformation.createProxyUser(doAsUserFromQuery, ugi);
 }
 return ugi;
}
origin: io.prestosql.hadoop/hadoop-apache

UserGroupInformation ugi() throws IOException {
 if (UserGroupInformation.isSecurityEnabled()) {
  return tokenUGI();
 }
 final String usernameFromQuery = params.userName();
 final String doAsUserFromQuery = params.doAsUser();
 final String remoteUser = usernameFromQuery == null
   ? JspHelper.getDefaultWebUserName(params.conf()) // not specified in
   // request
   : usernameFromQuery;
 UserGroupInformation ugi = UserGroupInformation.createRemoteUser(remoteUser);
 JspHelper.checkUsername(ugi.getShortUserName(), usernameFromQuery);
 if (doAsUserFromQuery != null) {
  // create and attempt to authorize a proxy user
  ugi = UserGroupInformation.createProxyUser(doAsUserFromQuery, ugi);
 }
 return ugi;
}
origin: io.prestosql.hadoop/hadoop-apache

? getDefaultWebUserName(conf) // not specified in request
: usernameFromQuery;
org.apache.hadoop.hdfs.server.commonJspHelpergetDefaultWebUserName

Popular methods of JspHelper

  • getUGI
    Same as getUGI(null, request, conf).
  • getRemoteAddr
  • checkUsername
    Expected user name should be a short name.
  • getDelegationTokenUrlParam
    Returns the url parameter for the given token string.
  • getNNServiceAddress
  • getTokenUGI
  • getUrlParam
    Returns the url parameter for the given string, prefixed with '?' if firstParam is true, prefixed wi
  • getUsernameFromQuery
  • bestNode
  • validatePath
    Validate filename.

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now