org.apache.ldap.server.authn
Class SimpleAuthenticator

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

public class SimpleAuthenticator
extends AbstractAuthenticator

A simple AuthenticationService that just authenticates clear text passwords contained within the userPassword attribute.

Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.ldap.server.authn.AbstractAuthenticator
authenticatorConfig, authenticatorType
 
Constructor Summary
SimpleAuthenticator()
          Creates a simple authenticator for clear text passwords in userPassword attributes.
 
Method Summary
 LdapPrincipal authenticate(ServerContext ctx)
          Uses the userPassword field of the user to authenticate.
 
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

SimpleAuthenticator

public SimpleAuthenticator()
Creates a simple authenticator for clear text passwords in userPassword attributes.

Method Detail

authenticate

public LdapPrincipal authenticate(ServerContext ctx)
                           throws javax.naming.NamingException
Uses the userPassword field of the user to authenticate.

Specified by:
authenticate in interface Authenticator
Specified by:
authenticate in class AbstractAuthenticator
Throws:
javax.naming.NamingException
See Also:
Authenticator.authenticate(org.apache.ldap.server.jndi.ServerContext)