JAC project
AOPSYS
CEDRIC & LIP6 labs

org.objectweb.jac.aspects.authentication
Class TrustingAuthenticator

java.lang.Object
  |
  +--org.objectweb.jac.aspects.authentication.TrustingAuthenticator
All Implemented Interfaces:
Authenticator

public class TrustingAuthenticator
extends Object
implements Authenticator

This Authenticator just ask the username of the user without asking a password. It just trusts the user to enter the correct username. It needs a DisplayContext attribute in order to be able to interact with the user.


Constructor Summary
TrustingAuthenticator()
           
 
Method Summary
 void askUsername(String username)
           
 String authenticate()
          Authenticates the current user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrustingAuthenticator

public TrustingAuthenticator()
Method Detail

authenticate

public String authenticate()
                    throws AuthenticationFailedException
Description copied from interface: Authenticator
Authenticates the current user.

Specified by:
authenticate in interface Authenticator
Returns:
the username of the user.
AuthenticationFailedException

askUsername

public void askUsername(String username)

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli