org.apache.directory.server.core.authn
Class AnonymousAuthenticator

java.lang.Object
  extended by org.apache.directory.server.core.authn.AbstractAuthenticator
      extended by org.apache.directory.server.core.authn.AnonymousAuthenticator
All Implemented Interfaces:
Authenticator

public class AnonymousAuthenticator
extends AbstractAuthenticator

An Authenticator that handles anonymous connections (type 'none').

Author:
Apache Directory Project

Constructor Summary
AnonymousAuthenticator()
          Creates a new instance.
 
Method Summary
 LdapPrincipal authenticate(org.apache.directory.shared.ldap.name.LdapDN bindDn, ServerContext ctx)
          If the context is not configured to allow anonymous connections, this method throws a NoPermissionException.
 
Methods inherited from class org.apache.directory.server.core.authn.AbstractAuthenticator
createLdapPrincipal, destroy, doDestroy, doInit, getAuthenticatorType, getConfiguration, getFactoryConfiguration, init, invalidateCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnonymousAuthenticator

public AnonymousAuthenticator()
Creates a new instance.

Method Detail

authenticate

public LdapPrincipal authenticate(org.apache.directory.shared.ldap.name.LdapDN bindDn,
                                  ServerContext ctx)
                           throws javax.naming.NamingException
If the context is not configured to allow anonymous connections, this method throws a NoPermissionException.

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


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.