public abstract class AbstractLdapConnection extends org.apache.mina.core.service.IoHandlerAdapter implements LdapConnection
Modifier and Type | Field and Description |
---|---|
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
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractLdapConnection()
Creates a new instance of an AbstractLdapConnection
|
protected |
AbstractLdapConnection(LdapApiService codec) |
Modifier and Type | Method and Description |
---|---|
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 on a server.
|
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.
|
exceptionCaught, messageReceived, messageSent, sessionClosed, sessionCreated, sessionIdle, sessionOpened
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, setSchemaManager, setTimeOut, unBind
protected SchemaManager schemaManager
protected AtomicInteger messageId
protected LdapApiService codec
protected AbstractLdapConnection()
protected AbstractLdapConnection(LdapApiService codec)
public void bind(Dn name) throws LdapException
bind
in interface LdapConnection
name
- The name we use to authenticate the user.LdapException
- if some error occurredpublic void bind(String name) throws LdapException
bind
in interface LdapConnection
name
- The name we use to authenticate the user. It must be a
valid Dn
LdapException
- if some error occurredpublic void bind(String name, String credentials) throws LdapException
bind
in interface LdapConnection
name
- The name we use to authenticate the user. It must be a
valid Dn
credentials
- The password, it can't be null
LdapException
- if some error occurredpublic void bind(Dn name, String credentials) throws LdapException
bind
in interface LdapConnection
name
- The name we use to authenticate the user.credentials
- The password, it can't be nullLdapException
- if some error occurredprotected BindRequest createBindRequest(String name, byte[] credentials, String saslMechanism, Control... controls) throws LdapException
LdapException
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.