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(BindOperationContext opContext)
          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
destroy, doDestroy, doInit, getAuthenticatorType, getDirectoryService, 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(BindOperationContext opContext)
                           throws org.apache.directory.shared.ldap.exception.LdapNoPermissionException
If the context is not configured to allow anonymous connections, this method throws a NoPermissionException.

Throws:
org.apache.directory.shared.ldap.exception.LdapNoPermissionException


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