The document describes how to implement programmatic login in Servlet 3.0. It explains that the HttpServletRequest object contains new login() and logout() methods to authenticate users. The login() method validates the username and password against the default realm, while logout() logs the user out of the current session. An example is provided using Tomcat 7 with a servlet that calls login() on successful credentials and logout() on logout.