public final class TimelineReaderWebServicesUtils extends Object
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.security.UserGroupInformation |
getCallerUserGroupInformation(javax.servlet.http.HttpServletRequest hsr,
boolean usePrincipal)
Get UGI from the HTTP request.
|
static org.apache.hadoop.security.UserGroupInformation |
getUser(javax.servlet.http.HttpServletRequest req)
Get UGI based on the remote user in the HTTP request.
|
public static org.apache.hadoop.security.UserGroupInformation getUser(javax.servlet.http.HttpServletRequest req)
req
- HTTP request.public static org.apache.hadoop.security.UserGroupInformation getCallerUserGroupInformation(javax.servlet.http.HttpServletRequest hsr, boolean usePrincipal)
hsr
- HTTP request.usePrincipal
- if true, use principal name else use remote user nameCopyright © 2008–2021 Apache Software Foundation. All rights reserved.