Multiple choice technology security

What kind of exception does the method login(HttpServletRequest request, HttpServletResponse response) throw?

  1. LoginException

  2. EnterpriseSecurityException

  3. SecurityException

  4. IntrusionException

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

The login() method throws SecurityException when authentication fails or security violations occur. This is the standard exception type for security-related failures in this particular API. LoginException and EnterpriseSecurityException are not the correct exception types for this framework, and IntrusionException would be used for detecting malicious behavior patterns, not normal login failures.