org.apache.commons.httpclient
Class NTLM

java.lang.Object
  |
  +--org.apache.commons.httpclient.NTLM

public final class NTLM
extends java.lang.Object

Provides an implementation of the NTLM authentication protocol.

This class provides methods for generating authentication challenge responses for the NTLM authentication protocol. The NTLM protocol is a proprietary Microsoft protocol and as such no RFC exists for it. This class is based upon the reverse engineering efforts of a wide range of people.

Since:
2.0
Version:
$Revision: 1.9 $ $Date: 2003/01/23 22:47:48 $
Author:
Adrian Sutton, Jeff Dever

Field Summary
static java.lang.String DEFAULT_CHARSET
          Character encoding
 
Constructor Summary
NTLM()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CHARSET

public static final java.lang.String DEFAULT_CHARSET
Character encoding

See Also:
Constant Field Values
Constructor Detail

NTLM

public NTLM()
Method Detail

getResponseFor

public 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.
HttpException


Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.