wood burning stoves 2.0*
The moose likes Servlets and the fly likes Fields in HttpServletRequest Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Fields in HttpServletRequest" Watch "Fields in HttpServletRequest" New topic
Author

Fields in HttpServletRequest

Nila dhan
Ranch Hand

Joined: Sep 15, 2005
Posts: 160
what are BASIC_AUTH ,FORM_AUTH,CLIENT_CERT_AUTH and DIGEST_AUTH fields in the HttpServetRequest interface.purpose?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41613
    
  55
Those are different modes of authentication if you use HTTP authentication. Through the getUserPricipal, getAuthType and isUserInRole methods you can find out if and how a user has been authenticated.
Basic means through the browser username/password dialog.
Form means through a username/password web page.
Digest sends the authentication info not in cleartext, but digested (i.e., kind of encrypted). (I'm, not actually sure if current browsers support this.)
Client-Certificate means the user has sent a personal certificate; the strongest form of authentication.


Ping & DNS - my free Android networking tools app
Nila dhan
Ranch Hand

Joined: Sep 15, 2005
Posts: 160
could you please give some more details about this?A more detailed explanation would be better
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Originally posted by nila dhan:
could you please give some more details about this?A more detailed explanation would be better


Google serach is the best option.


Groovy
 
Don't get me started about those stupid light bulbs.
 
subject: Fields in HttpServletRequest