예제 #1
0
        public override UserGroupInformation GetValue(HttpContext context)
        {
            Configuration conf = (Configuration)servletcontext.GetAttribute(JspHelper.CurrentConf
                                                                            );

            try
            {
                return(JspHelper.GetUGI(servletcontext, request, conf, UserGroupInformation.AuthenticationMethod
                                        .Kerberos, false));
            }
            catch (IOException e)
            {
                throw new SecurityException(SecurityUtil.FailedToGetUgiMsgHeader + " " + e, e);
            }
        }
예제 #2
0
 /// <exception cref="System.IO.IOException"/>
 protected internal virtual UserGroupInformation GetUGI(HttpServletRequest request
                                                        , Configuration conf)
 {
     return(JspHelper.GetUGI(GetServletContext(), request, conf));
 }