jcifs.http

Class NtlmSsp

public class NtlmSsp extends Object implements NtlmFlags

This class is used internally by NtlmHttpFilter, NtlmServlet, and NetworkExplorer to negiotiate password hashes via NTLM SSP with MSIE. It might also be used directly by servlet containers to incorporate similar functionality.

How NTLMSSP is used in conjunction with HTTP and MSIE clients is described in an NTLM Authentication Scheme for HTTP.

Also, read jCIFS NTLM HTTP Authentication and the Network Explorer Servlet related information.

Method Summary
static NtlmPasswordAuthenticationauthenticate(HttpServletRequest req, HttpServletResponse resp, byte[] challenge)
Performs NTLM authentication for the servlet request.
NtlmPasswordAuthenticationdoAuthentication(HttpServletRequest req, HttpServletResponse resp, byte[] challenge)
Calls the static (HttpServletRequest, HttpServletResponse, byte[]) method to perform NTLM authentication for the specified servlet request.

Method Detail

authenticate

public static NtlmPasswordAuthentication authenticate(HttpServletRequest req, HttpServletResponse resp, byte[] challenge)
Performs NTLM authentication for the servlet request.

Parameters: req The request being serviced. resp The response. challenge The domain controller challenge.

Throws: IOException If an IO error occurs. ServletException If an error occurs.

doAuthentication

public NtlmPasswordAuthentication doAuthentication(HttpServletRequest req, HttpServletResponse resp, byte[] challenge)
Calls the static (HttpServletRequest, HttpServletResponse, byte[]) method to perform NTLM authentication for the specified servlet request.

Parameters: req The request being serviced. resp The response. challenge The domain controller challenge.

Throws: IOException If an IO error occurs. ServletException If an error occurs.