public class NTCredentials extends Credentials implements Serializable
NTLM Credentials bean used to create
org.apache.commons.httpclient.NTCredentials
and org.apache.commons.httpclient.auth.AuthScope
.
Note: User name, password, host, and domain are required.
Modifier and Type | Field and Description |
---|---|
protected String |
domain |
protected String |
host |
authScopeHost, authScopePort, password, userName
Constructor and Description |
---|
NTCredentials()
Constructor
|
NTCredentials(String authScopeHost,
int authScopePort,
String userName,
String password,
String host,
String domain)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getDomain()
Gets domain.
|
String |
getHost()
Gets host.
|
void |
setDomain(String domain)
Sets domain.
|
void |
setHost(String host)
Sets host.
|
String |
toString()
Returns a string representation of the object.
|
getAuthScopeHost, getAuthScopePort, getPassword, getUserName, setAuthScopeHost, setAuthScopePort, setPassword, setUserName
public String getHost()
public void setHost(String host)
public String getDomain()
public void setDomain(String domain)
public String toString()
toString
in class Credentials
Copyright © 2008-2013 Spring by Example. All Rights Reserved.