• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Fields in HttpServletRequest

 
Nila dhan
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what are BASIC_AUTH ,FORM_AUTH,CLIENT_CERT_AUTH and DIGEST_AUTH fields in the HttpServetRequest interface.purpose?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
could you please give some more details about this?A more detailed explanation would be better
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic