|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.httpclient.UsernamePasswordCredentials org.apache.commons.httpclient.NTCredentials
public class NTCredentials
Credentials
for use with the NTLM authentication scheme which requires additional
information.
Constructor Summary | |
---|---|
NTCredentials(String userName,
String password,
String host,
String domain)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Performs a case-sensitive check to see if the components of the credentials are the same. |
String |
getDomain()
Retrieves the name to authenticate with. |
String |
getHost()
Retrieves the host name of the computer originating the request. |
int |
hashCode()
Computes a hash code based on all the case-sensitive parts of the credentials object. |
String |
toString()
Return a string representation of this object. |
Methods inherited from class org.apache.commons.httpclient.UsernamePasswordCredentials |
---|
getPassword, getUserName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NTCredentials(String userName, String password, String host, String domain)
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.Method Detail |
---|
public String getDomain()
public String getHost()
public String toString()
toString
in class UsernamePasswordCredentials
public int hashCode()
hashCode
in class UsernamePasswordCredentials
public boolean equals(Object o)
equals
in class UsernamePasswordCredentials
o
- The object to match.
true
if all of the credentials match.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |