Credentials
public class NTCredentials extends UsernamePasswordCredentials
Credentials
for use with the NTLM authentication scheme which requires additional
information.Constructor | Description |
---|---|
NTCredentials() |
Deprecated.
Do not use.
|
NTCredentials(java.lang.String userName,
java.lang.String password,
java.lang.String host,
java.lang.String domain) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
Performs a case-sensitive check to see if the components of the credentials
are the same.
|
java.lang.String |
getDomain() |
Retrieves the name to authenticate with.
|
java.lang.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.
|
void |
setDomain(java.lang.String domain) |
Deprecated.
Do not use.
|
void |
setHost(java.lang.String host) |
Deprecated.
Do not use.
|
java.lang.String |
toString() |
Return a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPassword, getUserName, setPassword, setUserName
public NTCredentials()
public NTCredentials(java.lang.String userName, java.lang.String password, java.lang.String host, java.lang.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.public void setDomain(java.lang.String domain)
domain
- the NT domain to authenticate in.getDomain()
public java.lang.String getDomain()
setDomain(String)
public void setHost(java.lang.String host)
host
- the Host the user is logged into.public java.lang.String getHost()
public java.lang.String toString()
toString
in class UsernamePasswordCredentials
public int hashCode()
hashCode
in class UsernamePasswordCredentials
public boolean equals(java.lang.Object o)
equals
in class UsernamePasswordCredentials
o
- The object to match.true
if all of the credentials match.Copyright (c) 1999-2005 - Apache Software Foundation