|
|||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
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. |
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. |
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"
|
|||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |