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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 41144
    
  45
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: 8904

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
 
wood burning stoves
 
subject: Fields in HttpServletRequest
 
Similar Threads
WA #1.....word association
both CMP and CMR fields are virtual fields?
OCP Practice Exams Sef-Assessment Test 2 Q4
Opera submits form on enter Explorer dont ?
What is the difference between instance variables and non local variables