Class NTLMEngine

java.lang.Object
com.ning.http.client.ntlm.NTLMEngine

public final class NTLMEngine extends Object
Provides an implementation for NTLMv1, NTLMv2, and NTLM2 Session forms of the NTLM authentication protocol.
Since:
4.1
  • Field Details

    • INSTANCE

      public static final NTLMEngine INSTANCE
  • Constructor Details

    • NTLMEngine

      public NTLMEngine()
  • Method Details

    • generateType1Msg

      public String generateType1Msg()
      Creates the first message (type 1 message) in the NTLM authentication sequence. This message includes the user name, domain and host for the authentication session.
      Returns:
      String the message to add to the HTTP request header.
    • generateType3Msg

      public String generateType3Msg(String username, String password, String domain, String workstation, String challenge) throws NTLMEngineException
      Throws:
      NTLMEngineException