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 handles user authentication and can fail for various reasons (invalid credentials, locked account, etc.). When authentication fails, it throws a SecurityException, which is the appropriate exception type for security-related failures in the API hierarchy.