http authentication

hi, I'm trying to protect one of my servlets via HTTP basic authentiication. of course, this is possible through the server. but, is there are way a servlet can access the username and password the visitor entered? thank's, Markus