Package com.lightdev.lib.sam

The Light Development Simple Access Model (SAM) is a framework that models a user and role based authentication and authorisation mechanism.

See:
          Description

Interface Summary
SAMApplication Server applications that utilize the Light Development Simple Access Model (SAM) need to implement this interface.
UserDataStore This interface has to be implemented by classes that want to provide user and role data in the context of the Light Development Simple Access Model (SAM) framework.
UserDataStoreAdministrator This interface has to be implemented by classes that want to create, change or delete user and role data in the context of the Light Development Simple Access Model (SAM) framework.
 

Class Summary
Gatekeeper Gatekeeper is the central authorization object of the Light Developent Simple Access Model (SAM) framework.
JDBCAdapter Abstract base class for database adapters based on the Java Database Connectivity (JDBC) API used by the Light Development Simple Access Model (SAM).
JDBCUserDataStore JDBCUserDataStore is an implementation of interface UserDataStore to access a JDBC database having user and role data.
MemoryUserDataStore A user data store that holds user data in memory (as opposed to e.g.
Role The Role class models a user role in the context of the Light Development Simple Access Model (SAM) framework.
RootUserDataStore A user data store that implements a single root user with all possible roles
SAMAuthenticator SAMAuthenticator wraps methods login, logout and changeOwnPassword of a given Gatekeeper object so that they can be used as remote methods.
Session A session is created for each user that is logged in the Light Development Simple Access Method (SAM) framework.
User A user as modeled by the Light Development Simple Access Model (SAM) framework.
XmlStoreReader An extension to class XmlReader that holds methods to transform xml text to Java objects for SAM classes User and Role assuming user and role data in XML tag attributes.
 

Enum Summary
AccessException.Type the types an instance of AccessException can assume
 

Exception Summary
AccessException AccessException.java
 

Package com.lightdev.lib.sam Description

The Light Development Simple Access Model (SAM) is a framework that models a user and role based authentication and authorisation mechanism. It is build around the concept of a central Gatekeeper object that authenticates users against a backing UserDataStore and manages sessions for logged in users.

UserDataStore is modeled as an interface so that any type of data store can be used with the framework. Default implementations of user data stores are included in the SAM package for user data from a relational database with class JDBCUserDataStore and for user data cached in memory coming from an XML file with class MemoryUserDataStore.

Version:
2, March 12, 2008
Author:
Ulrich Hilger, Light Development, http://www.lightdev.com, info@lightdev.com, published under the terms and conditions of the BSD License, for details see file license.txt in the distribution package of this software