JAC project
AOPSYS
CEDRIC & LIP6 labs

Package org.objectweb.jac.aspects.authentication

Provides an aspect to handle authentication in JAC applications.

See:
          Description

Interface Summary
AuthenticationConf This is the configuration interface of the authentication aspect.
Authenticator The role of a class that implements this interface is to ensure that the AuthenticationAC.USER contextual attribute corresponds to an authenticated user (an existing user).
 

Class Summary
AuthenticationAC This AC weaves the authentication aspect.
AuthenticationWrapper This wrapper uses an authenticator and a controller to ensure that the current interaction is authenticated and allowed.
FilePasswordAuthenticator This Authenticator ask for a username and password and compares them to declared ones stored in a file.
GetenvAuthenticator This Authenticator gets the username from an envrionnement variable.
PasswordAuthenticator This Authenticator ask for a username and password.
SystemAuthenticator This Authenticator gets the username from the "user.name" property.
TrustingAuthentication This class performs a trusting authentication.
TrustingAuthenticator This Authenticator just ask the username of the user without asking a password.
UserPasswordAuthenticator This Authenticator asks for a username and password and checks them by using the user aspect.
 

Exception Summary
AccessDeniedException This exception is thrown when the access to a given method is denied for the current user.
AuthenticationFailedException This exception is thrown when the authentication process fails.
 

Package org.objectweb.jac.aspects.authentication Description

Provides an aspect to handle authentication in JAC applications.

Aspect-Oriented Programming allows authentication to be defined in a very simple way. The authentication aspect components handles lists of users and their access rights and lists of methods that have restricted access characteristics.

These last methods are wrapped by an authentication wrapper (see AuthenticationWrapper that checks if the collaboration's context tells that the current user is authenticated. If not, the wrapper uses the current display to ask to the user to input the authentication informations defined in some special classes as ThrustingAuthentication.

Here is a sample configuration file for this aspect:

addTrustedUser "renaud" "renaud"
addRestrictedMethod "org.objectweb.jac.samples.calcul.Calcul" "add"
addRestrictedMethod "org.objectweb.jac.samples.calcul.Calcul" "sub"

Related Documentation

For overviews, sources, tutorials, examples, guides, and tool documentation, please see:


Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli