org.apache.directory.server.ldap.handlers.bind.ntlm
Interface NtlmProvider


public interface NtlmProvider

An NTLM authentication service provider. Multiple providers may be utilized to conduct the NTLM negotiation over various protocols or by calling native SSPI interfaces.

Version:
$Rev$
Author:
Apache Directory Project

Method Summary
 boolean authenticate(org.apache.mina.common.IoSession session, byte[] type3response)
          Handles a Type 3 NTLM response from the client.
 byte[] generateChallenge(org.apache.mina.common.IoSession session, byte[] type1reponse)
          Handles a Type 1 NTLM response from the client to generate an NTLM Type 2 challenge message.
 

Method Detail

generateChallenge

byte[] generateChallenge(org.apache.mina.common.IoSession session,
                         byte[] type1reponse)
                         throws java.lang.Exception
Handles a Type 1 NTLM response from the client to generate an NTLM Type 2 challenge message.

Parameters:
session - the MINA IoSession to store any state to be thread safe
type1reponse - the Type 1 NTLM response from client
Returns:
the NTLM Type 2 message with the challenge
Throws:
java.lang.Exception

authenticate

boolean authenticate(org.apache.mina.common.IoSession session,
                     byte[] type3response)
                     throws java.lang.Exception
Handles a Type 3 NTLM response from the client.

Parameters:
session - the MINA IoSession to store any state to be thread safe
type3response - the Type 3 NTLM response from the client
Returns:
the result of the authentication from the server
Throws:
java.lang.Exception


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.