This project has retired. For details please refer to its
Attic page.
org.apache.lenya.ac.impl
Class UserAuthenticator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.lenya.ac.impl.UserAuthenticator
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.logger.LogEnabled, org.apache.lenya.ac.Authenticator
public class UserAuthenticator
- extends org.apache.avalon.framework.logger.AbstractLogEnabled
- implements org.apache.lenya.ac.Authenticator
User authenticator.
- Version:
- $Id: UserAuthenticator.java 593543 2007-11-09 14:39:04Z andreas $
| Fields inherited from interface org.apache.lenya.ac.Authenticator |
ROLE |
|
Method Summary |
boolean |
authenticate(org.apache.lenya.ac.AccreditableManager accreditableManager,
org.apache.cocoon.environment.Request request)
|
protected boolean |
authenticate(org.apache.lenya.ac.AccreditableManager accreditableManager,
java.lang.String username,
java.lang.String password,
org.apache.lenya.ac.Identity identity)
Authenticates a user with a given username and password. |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserAuthenticator
public UserAuthenticator()
authenticate
public boolean authenticate(org.apache.lenya.ac.AccreditableManager accreditableManager,
org.apache.cocoon.environment.Request request)
throws org.apache.lenya.ac.AccessControlException
- Specified by:
authenticate in interface org.apache.lenya.ac.Authenticator
- Throws:
org.apache.lenya.ac.AccessControlException- See Also:
Note that this implementation first checks if the
user has authenticated over basic HTTP authentication. If yes, it uses these
credentials.
authenticate
protected boolean authenticate(org.apache.lenya.ac.AccreditableManager accreditableManager,
java.lang.String username,
java.lang.String password,
org.apache.lenya.ac.Identity identity)
throws org.apache.lenya.ac.AccessControlException
- Authenticates a user with a given username and password. When the authentication is
successful, the user is added to the identity.
- Parameters:
accreditableManager - The accreditable manager.username - The username.password - The password.identity - The identity to add the user to.
- Returns:
true if the user was authenticated, false otherwise.
- Throws:
org.apache.lenya.ac.AccessControlException - when something went wrong.
Copyright © $ Apache Software Foundation. All Rights Reserved.