Class LdapProtocol
- java.lang.Object
-
- org.pentaho.di.trans.steps.ldapinput.LdapProtocol
-
- Direct Known Subclasses:
LdapSslProtocol
public class LdapProtocol extends Object
Class encapsulating Ldap protocol configuration
-
-
Constructor Summary
Constructors Constructor Description LdapProtocol(org.pentaho.di.core.logging.LogChannelInterface log, org.pentaho.di.core.variables.VariableSpace variableSpace, LdapMeta meta, Collection<String> binaryAttributes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidconnect(String username, String password)protected InitialLdapContextcreateLdapContext(Hashtable<String,String> env)protected voiddoConnect(String username, String password)protected StringgetConnectionPrefix()InitialLdapContextgetCtx()static StringgetName()Method signature used by factory to get display name, method should exist in every ldap protocolprotected voidsetupEnvironment(Map<String,String> env, String username, String password)
-
-
-
Constructor Detail
-
LdapProtocol
public LdapProtocol(org.pentaho.di.core.logging.LogChannelInterface log, org.pentaho.di.core.variables.VariableSpace variableSpace, LdapMeta meta, Collection<String> binaryAttributes)
-
-
Method Detail
-
getCtx
public InitialLdapContext getCtx()
-
getConnectionPrefix
protected String getConnectionPrefix()
-
getName
public static String getName()
Method signature used by factory to get display name, method should exist in every ldap protocol- Returns:
- the display name
-
setupEnvironment
protected void setupEnvironment(Map<String,String> env, String username, String password) throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
-
createLdapContext
protected InitialLdapContext createLdapContext(Hashtable<String,String> env) throws NamingException
- Throws:
NamingException
-
doConnect
protected void doConnect(String username, String password) throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
-
connect
public final void connect(String username, String password) throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
-
close
public void close() throws org.pentaho.di.core.exception.KettleException- Throws:
org.pentaho.di.core.exception.KettleException
-
-