org.apache.directory.server.ldap.handlers.bind.ntlm
Class NtlmSaslServer

java.lang.Object
  extended by org.apache.directory.server.ldap.handlers.bind.ntlm.NtlmSaslServer
All Implemented Interfaces:
javax.security.sasl.SaslServer

public class NtlmSaslServer
extends java.lang.Object
implements javax.security.sasl.SaslServer

A SaslServer implementation for NTLM based SASL mechanism. This is required unfortunately because the JDK's SASL provider does not support this mechanism.

Version:
$$Rev$$
Author:
Apache Directory Project

Constructor Summary
NtlmSaslServer(NtlmProvider provider, org.apache.directory.shared.ldap.message.BindRequest request, org.apache.mina.common.IoSession session)
           
 
Method Summary
 void dispose()
           
 byte[] evaluateResponse(byte[] response)
           
 java.lang.String getAuthorizationID()
           
 java.lang.String getMechanismName()
           
 java.lang.Object getNegotiatedProperty(java.lang.String propName)
           
 boolean isComplete()
           
protected  void responseRecieved()
           
protected  void responseSent()
           
 byte[] unwrap(byte[] incoming, int offset, int len)
           
 byte[] wrap(byte[] outgoing, int offset, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NtlmSaslServer

public NtlmSaslServer(NtlmProvider provider,
                      org.apache.directory.shared.ldap.message.BindRequest request,
                      org.apache.mina.common.IoSession session)
Method Detail

getMechanismName

public java.lang.String getMechanismName()
Specified by:
getMechanismName in interface javax.security.sasl.SaslServer

responseRecieved

protected void responseRecieved()

responseSent

protected void responseSent()

evaluateResponse

public byte[] evaluateResponse(byte[] response)
                        throws javax.security.sasl.SaslException
Specified by:
evaluateResponse in interface javax.security.sasl.SaslServer
Throws:
javax.security.sasl.SaslException

isComplete

public boolean isComplete()
Specified by:
isComplete in interface javax.security.sasl.SaslServer

getAuthorizationID

public java.lang.String getAuthorizationID()
Specified by:
getAuthorizationID in interface javax.security.sasl.SaslServer

unwrap

public byte[] unwrap(byte[] incoming,
                     int offset,
                     int len)
              throws javax.security.sasl.SaslException
Specified by:
unwrap in interface javax.security.sasl.SaslServer
Throws:
javax.security.sasl.SaslException

wrap

public byte[] wrap(byte[] outgoing,
                   int offset,
                   int len)
            throws javax.security.sasl.SaslException
Specified by:
wrap in interface javax.security.sasl.SaslServer
Throws:
javax.security.sasl.SaslException

getNegotiatedProperty

public java.lang.Object getNegotiatedProperty(java.lang.String propName)
Specified by:
getNegotiatedProperty in interface javax.security.sasl.SaslServer

dispose

public void dispose()
             throws javax.security.sasl.SaslException
Specified by:
dispose in interface javax.security.sasl.SaslServer
Throws:
javax.security.sasl.SaslException


Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.