• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HF Page 664 Q6 Answers

 
Sandeep Krish
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question is "which security mechanism can be implemented by using a method in the HttpServletRequest interface"
ANS GIVEN:
A Authorization
B Data integrity
B Authentication
D Confidentiality
ANSWERS: A and C - Reason given - HttpServletRequest.getRemoteUser() can be used for authentication and isUserInRole() can be used to authorize.

I would say the answers B and D is also correct as there is a method isSecure() inherited from ServletRequest which can be used to ensure the data integrity and confidentiality (provided that they are managed by SSL).

Any inputs?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very interesting point.

You might be able to verify that data integrity and confidentiality are implemented using isSecure(), but isSecure() can not be used to implement either. The typical way to implement these is through declaration in the web.xml which will require that HTTPS (HTTP over SSL) be used to secure the connection.
 
Sandeep Krish
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with that point. Thank you Marc.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic