Spring Security provides the following built in mechanisms for reading a username and password from the HttpServletRequest:
HttpServletRequest
Username/PasswordForm
← Username/Password Authentication Form Login →