org.apache.directory.server.ldap.handlers.bind.ntlm
Class NtlmMechanismHandler
java.lang.Object
org.apache.directory.server.ldap.handlers.bind.AbstractMechanismHandler
org.apache.directory.server.ldap.handlers.bind.ntlm.NtlmMechanismHandler
- All Implemented Interfaces:
- MechanismHandler
public class NtlmMechanismHandler
- extends AbstractMechanismHandler
A handler for the NTLM Sasl and GSS-SPNEGO mechanism. Note that both
mechanisms require an NTLM mechanism provider which could be implemented
using jCIFS or native Win32 system calls via a JNI wrapper.
- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
- 'XBean'
Method Summary |
void |
cleanup(LdapSession ldapSession)
Remove the Host, UserBaseDn, props and Mechanism property. |
javax.security.sasl.SaslServer |
handleMechanism(LdapSession ldapSession,
org.apache.directory.shared.ldap.message.BindRequest bindRequest)
Implementors will use the session and message to determine what kind of
SaslServer to create and what initialization parameters it will require. |
void |
init(LdapSession ldapSession)
Initialize the saslProperties with some mechanism's specific data |
void |
setNtlmProvider(NtlmProvider provider)
|
void |
setNtlmProviderFqcn(java.lang.String fqcnProvider)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NtlmMechanismHandler
public NtlmMechanismHandler()
setNtlmProvider
public void setNtlmProvider(NtlmProvider provider)
setNtlmProviderFqcn
public void setNtlmProviderFqcn(java.lang.String fqcnProvider)
handleMechanism
public javax.security.sasl.SaslServer handleMechanism(LdapSession ldapSession,
org.apache.directory.shared.ldap.message.BindRequest bindRequest)
throws java.lang.Exception
- Description copied from interface:
MechanismHandler
- Implementors will use the session and message to determine what kind of
SaslServer
to create and what initialization parameters it will require.
- Returns:
- The
SaslServer
to use for the duration of the bound session.
- Throws:
java.lang.Exception
init
public void init(LdapSession ldapSession)
- Initialize the saslProperties with some mechanism's specific data
- Parameters:
ldapSession
- the Ldapsession instance
cleanup
public void cleanup(LdapSession ldapSession)
- Remove the Host, UserBaseDn, props and Mechanism property.
- Parameters:
ldapSession
- the LdapSession instance
Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.