org.apache.ldap.server.authn
Class AnonymousAuthenticator

java.lang.Object
  extended byorg.apache.ldap.server.authn.AbstractAuthenticator
      extended byorg.apache.ldap.server.authn.AnonymousAuthenticator
All Implemented Interfaces:
Authenticator, AuthenticatorConfig

public class AnonymousAuthenticator
extends AbstractAuthenticator

A default implentation of an AuthenticationService for handling anonymous connections.

Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.ldap.server.authn.AbstractAuthenticator
authenticatorConfig, authenticatorType
 
Constructor Summary
AnonymousAuthenticator()
           
 
Method Summary
 LdapPrincipal authenticate(ServerContext ctx)
          This will be called when the authentication is set to "none" on the client.
 
Methods inherited from class org.apache.ldap.server.authn.AbstractAuthenticator
createLdapPrincipal, getAuthenticatorConfig, getAuthenticatorContext, getAuthenticatorName, getAuthenticatorType, getInitParameter, getInitParameterNames, init, init
 
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 LdapPrincipal authenticate(ServerContext ctx)
                           throws javax.naming.NamingException
This will be called when the authentication is set to "none" on the client. If server is not configured to allow anonymous connections, it throws an exception.

Specified by:
authenticate in interface Authenticator
Specified by:
authenticate in class AbstractAuthenticator
Throws:
javax.naming.NamingException


Copyright © 2002-2005 . All Rights Reserved.