org.apache.commons.httpclient
Class NTCredentials
- Credentials
public class NTCredentials
Credentials
for use with the NTLM authentication scheme which requires additional
information.
Version:
- Adrian Sutton
- Mike Bowler
- 2.0
String | getDomain() - Retrieves the name to authenticate with.
|
String | getHost() - Retrieves the host name of the computer originating the request.
|
void | setDomain(String domain) - Do not use.
|
void | setHost(String host) - Do not use.
|
String | toString() - Return a string representation of this object.
|
NTCredentials
public NTCredentials()
Do not use. Null user name, domain & host no longer allowed
Default constructor.
NTCredentials
public NTCredentials(String userName,
String password,
String host,
String domain)
Constructor.
userName
- The user name. This should not include the domain to authenticate with.
For example: "user" is correct whereas "DOMAIN\\user" is not.password
- The password.host
- The host the authentication request is originating from. Essentially, the
computer name for this machine.domain
- The domain to authenticate within.
getDomain
public String getDomain()
Retrieves the name to authenticate with.
- String the domain these credentials are intended to authenticate with.
setDomain(String)
getHost
public String getHost()
Retrieves the host name of the computer originating the request.
- String the host the user is logged into.
setDomain
public void setDomain(String domain)
Do not use. The NTCredentials objects should be immutable
Sets the domain to authenticate with. The domain may not be null.
domain
- the NT domain to authenticate in.
getDomain()
setHost
public void setHost(String host)
Do not use. The NTCredentials objects should be immutable
Sets the host name of the computer originating the request. The host name may
not be null.
host
- the Host the user is logged into.
toString
public String toString()
Return a string representation of this object.
- toString in interface UsernamePasswordCredentials
- A string represenation of this object.
Copyright (c) 1999-2005 - Apache Software Foundation