org.apache.ldap.server.authn
Class AuthenticatorConfigBuilder

java.lang.Object
  extended byorg.apache.ldap.server.authn.AuthenticatorConfigBuilder

public class AuthenticatorConfigBuilder
extends java.lang.Object

An authenticator configuration builder which produces AuthenticatorConfig objects from various configuration formats, namely Hashtables.

Author:
Endi S. Dewata

Constructor Summary
AuthenticatorConfigBuilder()
           
 
Method Summary
static GenericAuthenticatorConfig getAuthenticatorConfig(java.lang.String authenticatorName, java.util.Hashtable env)
          Extracts properties from a Hashtable and builds a configuration bean for an AuthenticationService.
static GenericAuthenticatorConfig[] getAuthenticatorConfigs(java.util.Hashtable env)
          Extracts properties from a Hashtable and builds a set of configurations bean for Authenticators.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticatorConfigBuilder

public AuthenticatorConfigBuilder()
Method Detail

getAuthenticatorConfig

public static GenericAuthenticatorConfig getAuthenticatorConfig(java.lang.String authenticatorName,
                                                                java.util.Hashtable env)
                                                         throws javax.naming.NamingException
Extracts properties from a Hashtable and builds a configuration bean for an AuthenticationService.

Parameters:
authenticatorName - the name of the authenticator to extract configs for
env - the Hastable containing usually JNDI environment settings
Returns:
the extracted configuration object
Throws:
javax.naming.NamingException

getAuthenticatorConfigs

public static GenericAuthenticatorConfig[] getAuthenticatorConfigs(java.util.Hashtable env)
                                                            throws javax.naming.NamingException
Extracts properties from a Hashtable and builds a set of configurations bean for Authenticators.

Parameters:
env - the Hastable containing usually JNDI environment settings
Returns:
all the extracted configuration objects configured
Throws:
javax.naming.NamingException