|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.ldap.handlers.AbstractLdapHandler
org.apache.directory.server.ldap.handlers.BindHandler
org.apache.directory.server.ldap.handlers.DefaultBindHandler
public class DefaultBindHandler
A single reply handler for BindRequests.
Implements server-side of RFC 2222, sections 4.2 and 4.3.
| Field Summary |
|---|
| Fields inherited from interface org.apache.mina.handler.demux.MessageHandler |
|---|
NOOP |
| Constructor Summary | |
|---|---|
DefaultBindHandler()
Creates a new instance of BindHandler. |
|
| Method Summary | |
|---|---|
protected void |
bindMessageReceived(org.apache.mina.common.IoSession session,
org.apache.directory.shared.ldap.message.BindRequest bindRequest)
Deal with a received BindRequest |
void |
handleSasl(org.apache.mina.common.IoSession session,
org.apache.directory.shared.ldap.message.BindRequest bindRequest)
Deal with a SASL bind request |
void |
handleSaslAuth(org.apache.mina.common.IoSession session,
java.lang.Object message)
Handle the SASL authentication. |
void |
setDirectoryService(DirectoryService directoryService)
|
void |
setSaslMechanismHandlers(java.util.Map<java.lang.String,MechanismHandler> handlers)
Set the mechanisms handler map. |
void |
setSessionRegistry(SessionRegistry registry)
Associated a Registry to the handler |
| Methods inherited from class org.apache.directory.server.ldap.handlers.BindHandler |
|---|
messageReceived |
| Methods inherited from class org.apache.directory.server.ldap.handlers.AbstractLdapHandler |
|---|
getProtocolProvider, getSessionRegistry, isConfidentialityRequirementSatisfied, setProtocolProvider, setRequestControls |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultBindHandler()
| Method Detail |
|---|
public void setSaslMechanismHandlers(java.util.Map<java.lang.String,MechanismHandler> handlers)
handlers - The associations btween a machanism and its handlerpublic void setSessionRegistry(SessionRegistry registry)
registry - The registry to attachpublic void setDirectoryService(DirectoryService directoryService)
setDirectoryService in class BindHandler
public void handleSaslAuth(org.apache.mina.common.IoSession session,
java.lang.Object message)
throws java.lang.Exception
session - The associated Sessionmessage - The BindRequest received
java.lang.Exception - If the authentication cannot be done
public void handleSasl(org.apache.mina.common.IoSession session,
org.apache.directory.shared.ldap.message.BindRequest bindRequest)
throws java.lang.Exception
session - The IoSession for this Bind RequestbindRequest - The BindRequest received
java.lang.Exception - if the mechanism cannot handle the authentication
protected void bindMessageReceived(org.apache.mina.common.IoSession session,
org.apache.directory.shared.ldap.message.BindRequest bindRequest)
throws java.lang.Exception
bindMessageReceived in class BindHandlersession - The current sessionbindRequest - The received BindRequest
java.lang.Exception - If the euthentication cannot be handled
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||