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 "jac.samples.calcul.Calcul" "add"
addRestrictedMethod "jac.samples.calcul.Calcul" "sub"

Related Documentation

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