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

isSecureRequest() performs two critical checks: it verifies the request came over SSL/TLS (HTTPS) for encryption in transit, and confirms it's a POST request because sensitive operations should not be performed via GET (which can be cached, logged, or bookmarked). Only checking one of these conditions would be insufficient - both are required for a truly secure request.