Class ConfigurableLdapConnectionFactory
- java.lang.Object
-
- org.apache.archiva.redback.common.ldap.connection.ConfigurableLdapConnectionFactory
-
- All Implemented Interfaces:
LdapConnectionFactory
@Service("ldapConnectionFactory#configurable") public class ConfigurableLdapConnectionFactory extends Object implements LdapConnectionFactory
- Author:
- Trygve Laugstøl
-
-
Constructor Summary
Constructors Constructor Description ConfigurableLdapConnectionFactory()
-
Method Summary
-
-
-
Constructor Detail
-
ConfigurableLdapConnectionFactory
public ConfigurableLdapConnectionFactory()
-
-
Method Detail
-
initialize
@PostConstruct public void initialize()
- Specified by:
initialize
in interfaceLdapConnectionFactory
-
getConnection
public DefaultLdapConnection getConnection() throws LdapException
- Specified by:
getConnection
in interfaceLdapConnectionFactory
- Throws:
LdapException
-
getConnection
public DefaultLdapConnection getConnection(Rdn subRdn) throws LdapException
- Specified by:
getConnection
in interfaceLdapConnectionFactory
- Throws:
LdapException
-
getConnection
public DefaultLdapConnection getConnection(String bindDn, String password) throws LdapException
- Specified by:
getConnection
in interfaceLdapConnectionFactory
- Throws:
LdapException
-
getConnection
public DefaultLdapConnection getConnection(LdapConnectionConfiguration ldapConnectionConfiguration) throws LdapException
- Specified by:
getConnection
in interfaceLdapConnectionFactory
- Throws:
LdapException
-
getBaseDnLdapName
public LdapName getBaseDnLdapName() throws LdapException
- Specified by:
getBaseDnLdapName
in interfaceLdapConnectionFactory
- Throws:
LdapException
-
addObjectFactory
public void addObjectFactory(Class<? extends ObjectFactory> objectFactoryClass)
- Specified by:
addObjectFactory
in interfaceLdapConnectionFactory
-
addStateFactory
public void addStateFactory(Class<? extends StateFactory> stateFactoryClass)
- Specified by:
addStateFactory
in interfaceLdapConnectionFactory
-
getLdapConnectionConfiguration
public LdapConnectionConfiguration getLdapConnectionConfiguration()
-
setLdapConnectionConfiguration
public void setLdapConnectionConfiguration(LdapConnectionConfiguration ldapConnectionConfiguration)
-
getHostname
public String getHostname()
-
setHostname
public void setHostname(String hostname)
-
getPort
public int getPort()
-
setPort
public void setPort(int port)
-
isSsl
public boolean isSsl()
-
setSsl
public void setSsl(boolean ssl)
-
getContextFactory
public String getContextFactory()
-
setContextFactory
public void setContextFactory(String contextFactory)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
getAuthenticationMethod
public String getAuthenticationMethod()
-
setAuthenticationMethod
public void setAuthenticationMethod(String authenticationMethod)
-
getExtraProperties
public Properties getExtraProperties()
-
setExtraProperties
public void setExtraProperties(Properties extraProperties)
-
getUserConf
public UserConfiguration getUserConf()
-
setUserConf
public void setUserConf(UserConfiguration userConf)
-
isValid
public boolean isValid()
- Specified by:
isValid
in interfaceLdapConnectionFactory
-
-