|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.core.service.IoHandlerAdapter
org.apache.directory.ldap.client.api.AbstractLdapConnection
public abstract class AbstractLdapConnection
An abstract LdapConnection class gathering the common behavior of LdapConnection concrete classes.
| Field Summary | |
|---|---|
protected LdapApiService |
codec
the ldap codec service |
protected AtomicInteger |
messageId
A Message ID which is incremented for each operation |
protected SchemaManager |
schemaManager
the schema manager |
| Constructor Summary | |
|---|---|
protected |
AbstractLdapConnection()
Creates a new instance of an AbstractLdapConnection |
| Method Summary | |
|---|---|
void |
bind(Dn name)
Unauthenticated authentication Bind on a server. |
void |
bind(Dn name,
String credentials)
Simple Bind on a server. |
void |
bind(String name)
Unauthenticated authentication bind |
void |
bind(String name,
String credentials)
Simple Bind on a server. |
protected BindRequest |
createBindRequest(String name,
byte[] credentials,
String saslMechanism,
Control... controls)
Create a complete BindRequest ready to be sent. |
| Methods inherited from class org.apache.mina.core.service.IoHandlerAdapter |
|---|
exceptionCaught, messageReceived, messageSent, sessionClosed, sessionCreated, sessionIdle, sessionOpened |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, 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, 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, loadSchema, 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, setTimeOut, unBind |
| Field Detail |
|---|
protected SchemaManager schemaManager
protected AtomicInteger messageId
protected LdapApiService codec
| Constructor Detail |
|---|
protected AbstractLdapConnection()
| Method Detail |
|---|
public void bind(Dn name)
throws LdapException,
IOException
bind in interface LdapConnectionname - The name we use to authenticate the user. It must be a
valid Dn
IOException - if an I/O exception occurred
LdapException
public void bind(String name)
throws LdapException,
IOException
bind in interface LdapConnectionname - The name we use to authenticate the user. It must be a
valid Dn
IOException - if an I/O exception occurred
LdapException
public void bind(String name,
String credentials)
throws LdapException,
IOException
bind in interface LdapConnectionname - The name we use to authenticate the user. It must be a
valid Dncredentials - The password. It can't be null
IOException - if an I/O exception occurred
LdapException
public void bind(Dn name,
String credentials)
throws LdapException,
IOException
bind in interface LdapConnectionname - The name we use to authenticate the user. It must be a
valid Dncredentials - The password. It can't be null
IOException - if an I/O exception occurred
LdapException
protected BindRequest createBindRequest(String name,
byte[] credentials,
String saslMechanism,
Control... controls)
throws LdapException
LdapException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||