Determine user in Tomcat

To determine user authentication info in Tomcat, we can use the following:

getRemoteUser()
isUserInRole(String role)

Both methods are under javax.servlet.http.HttpServletRequest.

Comments

Popular posts from this blog

Java encoding : UTF-8, Big5, x-MS950-HKSCS