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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrustingAuthenticator
public TrustingAuthenticator()
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.
- Throws:
AuthenticationFailedException
askUsername
public void askUsername(String username)