org.apache.commons.httpclient
Class NTCredentials

java.lang.Object
  |
  +--org.apache.commons.httpclient.UsernamePasswordCredentials
        |
        +--org.apache.commons.httpclient.NTCredentials

public class NTCredentials
extends UsernamePasswordCredentials

Username and password Credentials.

Since:
2.0
Version:
$Revision: 1.6 $ $Date: 2003/01/30 05:01:54 $
Author:
Adrian Sutton, Mike Bowler

Constructor Summary
NTCredentials()
          Default constructor.
NTCredentials(String userName, String password, String host, String domain)
          Constructor.
 
Method Summary
 String getDomain()
          Domain property getter.
 String getHost()
          Host property getter.
 void setDomain(String domain)
          Domain property setter.
 void setHost(String host)
          Host property setter.
 String toString()
          Return a string representation of this object.
 
Methods inherited from class org.apache.commons.httpclient.UsernamePasswordCredentials
getPassword, getUserName, setPassword, setUserName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NTCredentials

public NTCredentials()
Default constructor.

NTCredentials

public NTCredentials(String userName,
                     String password,
                     String host,
                     String domain)
Constructor.
Parameters:
userName - The user name.
password - The password.
host - The host.
domain - The domain.
Method Detail

setDomain

public void setDomain(String domain)
Domain property setter.
Parameters:
domain - the NT domain to authenticate in.
See Also:
getDomain()

getDomain

public String getDomain()
Domain property getter.
Returns:
String domain
See Also:
setDomain(String)

setHost

public void setHost(String host)
Host property setter.
Parameters:
host - the Host the user is logged into.

getHost

public String getHost()
Host property getter.
Returns:
String host.

toString

public String toString()
Return a string representation of this object.
Overrides:
toString in class UsernamePasswordCredentials
Returns:
A string represenation of this object.


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