|
private Principal getUserPrincipal(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { Principal userPrincipal = request.getUserPrincipal();
if (userPrincipal == null) { userPrincipal = request.getUserPrincipal(); }
return userPrincipal; }
|