How does the `Java Authentication and Authorization Service (JAAS)` improve user authentication in Java applications?
JAAS uses third-party libraries to validate user credentials and enforce security policies.
Thatâ€™s partially correct. JAAS allows for pluggable modules, but it doesn't necessarily require third-party libraries.
Can you explain how a custom login module can be created in JAAS for user authentication?