Package io.milton.ldap
Class LdapConnection
java.lang.Object
java.lang.Thread
io.milton.ldap.LdapConnection
- All Implemented Interfaces:
Runnable
Handle a caldav connection.
This is the server part of a LDAP client to server connection. This will
locate information in some user repository (such as a milton carddav
implementation) and format the results as LDAP messages.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final byte[]protected BufferedInputStreamraw connection inputStreamprotected SaslServerSasl server for DIGEST-MD5 authenticationFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionLdapConnection(Socket clientSocket, UserFactory userSessionFactory, SearchManager searchManager, LdapTransactionManager txManager, PropFindPropertyBuilder propFindPropertyBuilder) Initialize the streams and start the thread. -
Method Summary
Modifier and TypeMethodDescriptionprotected void_handleRequest(byte[] inbuf, int offset) final voidclose()Close client connection, streams and Exchange session .protected voidhandleRequest(byte[] inbuf, int offset) voidrun()Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
saslServer
Sasl server for DIGEST-MD5 authentication -
is
raw connection inputStream -
EMPTY_BYTE_ARRAY
protected static final byte[] EMPTY_BYTE_ARRAY
-
-
Constructor Details
-
LdapConnection
public LdapConnection(Socket clientSocket, UserFactory userSessionFactory, SearchManager searchManager, LdapTransactionManager txManager, PropFindPropertyBuilder propFindPropertyBuilder) Initialize the streams and start the thread.- Parameters:
clientSocket- LDAP client socket
-
-
Method Details
-
run
public void run() -
handleRequest
- Throws:
IOException
-
_handleRequest
- Throws:
IOException
-
close
public final void close()Close client connection, streams and Exchange session .
-