org.apache.lenya.ac.impl
Class AnonymousAuthenticator

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.ac.impl.AnonymousAuthenticator
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.logger.LogEnabled, Authenticator

public class AnonymousAuthenticator
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements Authenticator

The anonymous authenticator authenticates to an anonymous user with no password (you just have to add a user named 'anonymous' with an arbitrary password and the permissions you'd like via the admin screen). This is useful in conjunction with client certificates.

Version:
$Id: UserAuthenticator.java 43241 2004-08-16 16:36:57Z andreas $

Field Summary
 
Fields inherited from interface org.apache.lenya.ac.Authenticator
ROLE
 
Constructor Summary
AnonymousAuthenticator()
           
 
Method Summary
 boolean authenticate(AccreditableManager accreditableManager, org.apache.cocoon.environment.Request request)
          Authenticates a request.
 
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
 

Constructor Detail

AnonymousAuthenticator

public AnonymousAuthenticator()
Method Detail

authenticate

public boolean authenticate(AccreditableManager accreditableManager,
                            org.apache.cocoon.environment.Request request)
                     throws AccessControlException
Description copied from interface: Authenticator
Authenticates a request.

Specified by:
authenticate in interface Authenticator
Parameters:
accreditableManager - The accreditable manager to use.
request - The request.
Returns:
true if the request is authenticated, false otherwise.
Throws:
AccessControlException - when something went wrong.
See Also:
Authenticator.authenticate(org.apache.lenya.ac.AccreditableManager, org.apache.cocoon.environment.Request)


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.