public abstract class AbstractLdapConnection extends org.apache.mina.core.service.IoHandlerAdapter implements LdapConnection
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.directory.api.ldap.codec.api.LdapApiService |
codec
the ldap codec service
|
protected AtomicInteger |
messageId
A Message ID which is incremented for each operation
|
protected org.apache.directory.api.ldap.model.schema.SchemaManager |
schemaManager
the schema manager
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLdapConnection()
Creates a new instance of an AbstractLdapConnection
|
protected |
AbstractLdapConnection(org.apache.directory.api.ldap.codec.api.LdapApiService codec) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(org.apache.directory.api.ldap.model.name.Dn name)
Unauthenticated authentication bind on a server.
|
void |
bind(org.apache.directory.api.ldap.model.name.Dn name,
String credentials)
Simple bind on a server.
|
void |
bind(String name)
Unauthenticated authentication bind on a server.
|
void |
bind(String name,
String credentials)
Simple bind on a server.
|
protected org.apache.directory.api.ldap.model.message.BindRequest |
createBindRequest(String name,
byte[] credentials,
String saslMechanism,
org.apache.directory.api.ldap.model.message.Control... controls)
Create a complete BindRequest ready to be sent.
|
exceptionCaught, inputClosed, messageReceived, messageSent, sessionClosed, sessionCreated, sessionIdle, sessionOpenedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabandon, 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, 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, unBindprotected org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager
protected AtomicInteger messageId
protected org.apache.directory.api.ldap.codec.api.LdapApiService codec
protected AbstractLdapConnection()
protected AbstractLdapConnection(org.apache.directory.api.ldap.codec.api.LdapApiService codec)
public void bind(org.apache.directory.api.ldap.model.name.Dn name)
throws org.apache.directory.api.ldap.model.exception.LdapException
bind in interface LdapConnectionname - The name we use to authenticate the user.org.apache.directory.api.ldap.model.exception.LdapException - if some error occurredpublic void bind(String name) throws org.apache.directory.api.ldap.model.exception.LdapException
bind in interface LdapConnectionname - The name we use to authenticate the user. It must be a
valid Dnorg.apache.directory.api.ldap.model.exception.LdapException - if some error occurredpublic void bind(String name, String credentials) throws org.apache.directory.api.ldap.model.exception.LdapException
bind in interface LdapConnectionname - The name we use to authenticate the user. It must be a
valid Dncredentials - The password, it can't be nullorg.apache.directory.api.ldap.model.exception.LdapException - if some error occurredpublic void bind(org.apache.directory.api.ldap.model.name.Dn name,
String credentials)
throws org.apache.directory.api.ldap.model.exception.LdapException
bind in interface LdapConnectionname - The name we use to authenticate the user.credentials - The password, it can't be nullorg.apache.directory.api.ldap.model.exception.LdapException - if some error occurredprotected org.apache.directory.api.ldap.model.message.BindRequest createBindRequest(String name, byte[] credentials, String saslMechanism, org.apache.directory.api.ldap.model.message.Control... controls) throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapExceptionCopyright © 2009–2016 The Apache Software Foundation. All rights reserved.