aspose file tools*
The moose likes Servlets and the fly likes http authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "http authentication" Watch "http authentication" New topic
Author

http authentication

Markus A Kramer
Greenhorn

Joined: Aug 13, 2003
Posts: 1
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
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8898

You can use the getUserPrincipal, getRemoteUser methods on HttpServletRequest interface. From these you cannot get the password though.


Groovy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: http authentication
 
Similar Threads
When you're at work and you've got nothing to do
framework for session handling
setHeaders
I "laughed" so hard...
Metaphors for your source code? (from the "I couldn't wait until Friday dept.")