Multiple choice technology security

What does isSecureRequest(HttpServletRequest request) method accomplish?

  1. It checks if the http request is made on an SSL channel

  2. It checks if the http method is a POST

  3. Both of the above

  4. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The isSecureRequest method checks both SSL channel (HTTPS) and POST method. This dual check is important because sensitive data should be transmitted over SSL and state-changing operations should use POST, not GET.