import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class AuthorizationSnoop extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); out.println("
"); out.println("User Name: " + req.getRemoteUser()); out.println("Authorization Type: " + req.getAuthType()); out.println(""); out.println(""); } }