This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 161
what are BASIC_AUTH ,FORM_AUTH,CLIENT_CERT_AUTH and DIGEST_AUTH fields in the HttpServetRequest interface.purpose?
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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.
Nila dhan
Ranch Hand

Joined: Sep 15, 2005
Posts: 161
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: 8927

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
 
Have you checked out Aspose?
 
subject: Fields in HttpServletRequest
 
jQuery in Action, 3rd edition