Reading the Username & Password Spring Security provides the following built-in mechanisms for reading a username and password from HttpServletRequest: