Module jcifs

Class NtlmSsp

java.lang.Object
org.codelibs.jcifs.smb1.http.NtlmSsp
All Implemented Interfaces:
NtlmFlags

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.

  • Constructor Details

    • NtlmSsp

      public NtlmSsp()
      Default constructor.
  • Method Details

    • doAuthentication

      public NtlmPasswordAuthentication doAuthentication(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, byte[] challenge) throws IOException, jakarta.servlet.ServletException
      Calls the static authenticate(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.
      Returns:
      the authenticated NtlmPasswordAuthentication object
      Throws:
      IOException - If an IO error occurs.
      jakarta.servlet.ServletException - If an error occurs.
    • authenticate

      public static NtlmPasswordAuthentication authenticate(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, byte[] challenge) throws IOException, jakarta.servlet.ServletException
      Performs NTLM authentication for the servlet request.
      Parameters:
      req - The request being serviced.
      resp - The response.
      challenge - The domain controller challenge.
      Returns:
      the authenticated NtlmPasswordAuthentication object
      Throws:
      IOException - If an IO error occurs.
      IOException - If an IO error occurs.
      jakarta.servlet.ServletException - If an error occurs.