This page links to two tutorials demonstrating various aspects of the use of JAAS (Java Authentication and Authorization Service):
The authentication technology used for these tutorials is very basic, just ensuring that the user specifies a particular name and password. Thus, these tutorials can be run by everyone.
com.sun.security.auth
Packagecom.sun.security.auth.callback
Packagecom.sun.security.auth.login
Packagecom.sun.security.auth.module
PackageSimilar tutorials for JAAS authentication and authorization, but which demonstrate the use of a Kerberos LoginModule and thus which require a Kerberos installation, can be found at
These two tutorials are a part of the Java GSS-API and JAAS sequence of tutorials that utilize Kerberos as the underlying technology for authentication and secure communication.