# JAAS Tutorials

This page links to two tutorials demonstrating various aspects of the use of JAAS (JavaTM Authentication and Authorization Service):

1. JAAS Authentication

   Explains how an application can authenticate users using JAAS.

2. JAAS Authorization

   Explains how to enforce user-based access controls using JAAS.

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.

## Related Documentation

> ### API Specifications

> - com.sun.security.auth Package
> - com.sun.security.auth.callback Package
> - com.sun.security.auth.login Package
> - com.sun.security.auth.module Package

> ### User Guides

> - JavaTM Authentication and Authorization Service (JAAS) Reference Guide.

> ### Papers

> - JAAS white paper

> ### Tutorials

> - Similar 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

>   - JAAS Authentication
>   - JAAS Authorization

>   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.

> - Java 2 Security Tutorial

> ### Other Java Security Documentation

> - J2SDK, v 1.4 Security Documentation

Copyright © 2001-2002 Sun Microsystems, Inc. All Rights Reserved.