| |
|
| java.lang.Object org.apache.commons.httpclient.UsernamePasswordCredentials org.apache.commons.httpclient.NTCredentials
Method Summary | |
public boolean | equals(Object o) Performs a case-sensitive check to see if the components of the credentials
are the same.
Parameters: o - The object to match. | public String | getDomain() Retrieves the name to authenticate with. | public String | getHost() Retrieves the host name of the computer originating the request. | public int | hashCode() Computes a hash code based on all the case-sensitive parts of the credentials object. | public void | setDomain(String domain) Sets the domain to authenticate with. | public void | setHost(String host) Sets the host name of the computer originating the request. | public String | toString() Return a string representation of this object. |
NTCredentials | public NTCredentials()(Code) | | Default constructor.
|
NTCredentials | public NTCredentials(String userName, String password, String host, String domain)(Code) | | Constructor.
Parameters: userName - The user name. This should not include the domain to authenticate with.For example: "user" is correct whereas "DOMAIN\\user" is not. Parameters: password - The password. Parameters: host - The host the authentication request is originating from. Essentially, thecomputer name for this machine. Parameters: domain - The domain to authenticate within. |
equals | public boolean equals(Object o)(Code) | | Performs a case-sensitive check to see if the components of the credentials
are the same.
Parameters: o - The object to match. true if all of the credentials match. |
getHost | public String getHost()(Code) | | Retrieves the host name of the computer originating the request.
String the host the user is logged into. |
hashCode | public int hashCode()(Code) | | Computes a hash code based on all the case-sensitive parts of the credentials object.
The hash code for the credentials. |
setDomain | public void setDomain(String domain)(Code) | | Sets the domain to authenticate with. The domain may not be null.
Parameters: domain - the NT domain to authenticate in. See Also: NTCredentials.getDomain() |
setHost | public void setHost(String host)(Code) | | Sets the host name of the computer originating the request. The host name may
not be null.
Parameters: host - the Host the user is logged into. |
toString | public String toString()(Code) | | Return a string representation of this object.
A string represenation of this object. |
|
|
|