com.oaklandsw.http.ntlm
Class Ntlm

java.lang.Object
  extended bycom.oaklandsw.http.ntlm.Ntlm

public class Ntlm
extends java.lang.Object


Field Summary
static long _authMessageFlags
           
static int _authMessageLmResponse
           
static int _authMessageNtResponse
           
static long _challengeMessageFlags
           
static boolean _checkChallengeV2Flags
           
static boolean _useNtNegotiateFlags
           
static int AS_NEGOTIATED
           
static java.lang.String ENCODING
           
static int NONE
           
static int V1
           
static int V2
           
 
Constructor Summary
Ntlm()
           
 
Method Summary
static byte[] createTargetInfo(java.lang.String domain, java.lang.String host)
           
static void forceV1()
           
static void forceV2()
           
static java.lang.String getResponseFor(java.lang.String message, java.lang.String username, java.lang.String password, java.lang.String host, java.lang.String domain)
          Returns the response for the given message.
static void init()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
See Also:
Constant Field Values

V1

public static final int V1
See Also:
Constant Field Values

V2

public static final int V2
See Also:
Constant Field Values

AS_NEGOTIATED

public static final int AS_NEGOTIATED
See Also:
Constant Field Values

_authMessageNtResponse

public static int _authMessageNtResponse

_authMessageLmResponse

public static int _authMessageLmResponse

_useNtNegotiateFlags

public static boolean _useNtNegotiateFlags

_authMessageFlags

public static long _authMessageFlags

_challengeMessageFlags

public static long _challengeMessageFlags

_checkChallengeV2Flags

public static boolean _checkChallengeV2Flags

ENCODING

public static final java.lang.String ENCODING
See Also:
Constant Field Values
Constructor Detail

Ntlm

public Ntlm()
Method Detail

init

public static void init()

forceV2

public static void forceV2()

forceV1

public static void forceV1()

createTargetInfo

public static byte[] createTargetInfo(java.lang.String domain,
                                      java.lang.String host)

getResponseFor

public static final java.lang.String getResponseFor(java.lang.String message,
                                                    java.lang.String username,
                                                    java.lang.String password,
                                                    java.lang.String host,
                                                    java.lang.String domain)
                                             throws HttpException
Returns the response for the given message.

Parameters:
message - the message that was received from the server.
username - the username to authenticate with.
password - the password to authenticate with.
domain - the NT domain to authenticate in.
Throws:
HttpException


Copyright © 2002-2007 Oakland Software Incorporated. All Rights Reserved.