com.ning.http.client.ntlm
Class NTLMEngine

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

public class NTLMEngine
extends Object

Provides an implementation for NTLMv1, NTLMv2, and NTLM2 Session forms of the NTLM authentication protocol.

Since:
4.1

Field Summary
protected static int FLAG_NEGOTIATE_128
           
protected static int FLAG_NEGOTIATE_ALWAYS_SIGN
           
protected static int FLAG_NEGOTIATE_KEY_EXCH
           
protected static int FLAG_NEGOTIATE_NTLM
           
protected static int FLAG_NEGOTIATE_NTLM2
           
protected static int FLAG_NEGOTIATE_SEAL
           
protected static int FLAG_NEGOTIATE_SIGN
           
protected static int FLAG_TARGET_DESIRED
           
protected static int FLAG_UNICODE_ENCODING
           
 
Constructor Summary
NTLMEngine()
           
 
Method Summary
 String generateType1Msg(String domain, String workstation)
           
 String generateType3Msg(String username, String password, String domain, String workstation, String challenge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLAG_UNICODE_ENCODING

protected static final int FLAG_UNICODE_ENCODING
See Also:
Constant Field Values

FLAG_TARGET_DESIRED

protected static final int FLAG_TARGET_DESIRED
See Also:
Constant Field Values

FLAG_NEGOTIATE_SIGN

protected static final int FLAG_NEGOTIATE_SIGN
See Also:
Constant Field Values

FLAG_NEGOTIATE_SEAL

protected static final int FLAG_NEGOTIATE_SEAL
See Also:
Constant Field Values

FLAG_NEGOTIATE_NTLM

protected static final int FLAG_NEGOTIATE_NTLM
See Also:
Constant Field Values

FLAG_NEGOTIATE_ALWAYS_SIGN

protected static final int FLAG_NEGOTIATE_ALWAYS_SIGN
See Also:
Constant Field Values

FLAG_NEGOTIATE_NTLM2

protected static final int FLAG_NEGOTIATE_NTLM2
See Also:
Constant Field Values

FLAG_NEGOTIATE_128

protected static final int FLAG_NEGOTIATE_128
See Also:
Constant Field Values

FLAG_NEGOTIATE_KEY_EXCH

protected static final int FLAG_NEGOTIATE_KEY_EXCH
See Also:
Constant Field Values
Constructor Detail

NTLMEngine

public NTLMEngine()
Method Detail

generateType1Msg

public String generateType1Msg(String domain,
                               String workstation)
                        throws NTLMEngineException
Throws:
NTLMEngineException

generateType3Msg

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


Copyright © 2011. All Rights Reserved.