|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.auth.NTCredentials
public class NTCredentials
Credentials specific to the Windows platform.
| Constructor Summary | |
|---|---|
NTCredentials(String usernamePassword)
The constructor with the fully qualified username and password combined string argument. |
|
NTCredentials(String userName,
String password,
String workstation,
String domain)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. |
String |
getDomain()
Retrieves the name to authenticate with. |
String |
getPassword()
|
String |
getUserName()
|
Principal |
getUserPrincipal()
|
String |
getWorkstation()
Retrieves the workstation name of the computer originating the request. |
int |
hashCode()
Returns an integer hash code for the receiver. |
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NTCredentials(String usernamePassword)
usernamePassword - the domain/username:password formed string
public NTCredentials(String userName,
String password,
String workstation,
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.workstation - The workstation the authentication request is originating from.
Essentially, the computer name for this machine.domain - The domain to authenticate within.| Method Detail |
|---|
public Principal getUserPrincipal()
getUserPrincipal in interface Credentialspublic String getUserName()
public String getPassword()
getPassword in interface Credentialspublic String getDomain()
public String getWorkstation()
public int hashCode()
Objecttrue when passed to .equals must
answer the same value for this method.
hashCode in class ObjectObject.equals(java.lang.Object)public boolean equals(Object o)
Object
equals in class Objecto - Object the object to compare with this object.
true if the object is the same as this
object false if it is different from this object.Object.hashCode()public String toString()
Object
toString in class Object
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||