org.apache.http.auth.NTCredentials
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
NTCredentials(String usernamePassword)
The constructor with the fully qualified username and password combined
string argument.
Parameters
usernamePassword
| the domain/username:password formed string
|
public
NTCredentials(String userName, String password, String workstation, String domain)
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. |
password
| The password. |
workstation
| The workstation the authentication request is originating from.
Essentially, the computer name for this machine. |
domain
| The domain to authenticate within.
|
Public Methods
public
boolean
equals(Object o)
Compares the argument to the receiver, and returns true if they represent
the
same object using a class specific comparison. The
implementation in Object returns true only if the argument is the exact
same object as the receiver (==).
Parameters
o
| Object the object to compare with this object. |
Returns
- boolean
true
if the object is the same as this
object false
if it is different from this object.
public
String
getDomain()
Retrieves the name to authenticate with.
Returns
- String the domain these credentials are intended to authenticate with.
public
String
getWorkstation()
Retrieves the workstation name of the computer originating the request.
Returns
- String the workstation the user is logged into.
public
int
hashCode()
Returns an integer hash code for the receiver. Any two objects which
answer
true
when passed to
.equals
must
answer the same value for this method.
public
String
toString()
Returns a string containing a concise, human-readable description of the
receiver.
Returns
- String a printable representation for the receiver.