Class AbstractLdapConnection
- java.lang.Object
-
- org.apache.mina.core.service.IoHandlerAdapter
-
- org.apache.directory.ldap.client.api.AbstractLdapConnection
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,LdapConnection
,org.apache.mina.core.service.IoHandler
- Direct Known Subclasses:
LdapNetworkConnection
public abstract class AbstractLdapConnection extends org.apache.mina.core.service.IoHandlerAdapter implements LdapConnection
An abstract LdapConnection class gathering the common behavior of LdapConnection concrete classes.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(String name)
Unauthenticated authentication bind on a server.void
bind(String name, String credentials)
Simple bind on a server.void
bind(Dn name)
Unauthenticated authentication bind on a server.void
bind(Dn name, String credentials)
Simple bind on a server.-
Methods inherited from class org.apache.mina.core.service.IoHandlerAdapter
event, exceptionCaught, inputClosed, messageReceived, messageSent, sessionClosed, sessionCreated, sessionIdle, sessionOpened
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.directory.ldap.client.api.LdapConnection
abandon, abandon, add, add, anonymousBind, bind, bind, bind, close, compare, compare, compare, compare, compare, compare, compare, connect, delete, delete, delete, doesFutureExistFor, exists, exists, extended, extended, extended, extended, extended, getBinaryAttributeDetector, getCodecService, getRootDse, getRootDse, getSchemaManager, getSupportedControls, isAuthenticated, isConnected, isControlSupported, isRequestCompleted, loadSchema, loadSchemaRelaxed, lookup, lookup, lookup, lookup, lookup, lookup, modify, modify, modify, modify, modifyDn, move, move, moveAndRename, moveAndRename, moveAndRename, moveAndRename, rename, rename, rename, rename, search, search, search, setBinaryAttributeDetector, setSchemaManager, setTimeOut, unBind
-
-
-
-
Method Detail
-
bind
public void bind(Dn name) throws LdapException
Unauthenticated authentication bind on a server.- Specified by:
bind
in interfaceLdapConnection
- Parameters:
name
- The name used to authenticate the user.- Throws:
LdapException
- if some error occurred
-
bind
public void bind(String name) throws LdapException
Unauthenticated authentication bind on a server.- Specified by:
bind
in interfaceLdapConnection
- Parameters:
name
- The name used to authenticate the user. It must be a valid distinguished name.- Throws:
LdapException
- if some error occurred
-
bind
public void bind(String name, String credentials) throws LdapException
Simple bind on a server.- Specified by:
bind
in interfaceLdapConnection
- Parameters:
name
- The name used to authenticate the user. It must be a valid distinguished name.credentials
- The password, it can't benull
- Throws:
LdapException
- if some error occurred
-
bind
public void bind(Dn name, String credentials) throws LdapException
Simple bind on a server.- Specified by:
bind
in interfaceLdapConnection
- Parameters:
name
- The name used to authenticate the user.credentials
- The password, it can't be null- Throws:
LdapException
- if some error occurred
-
-