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).
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.
A good workman is known by his tools.
Joined: Jan 02, 2007
I agree with that point. Thank you Marc.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com