|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.auth.NTCredentials
@Contract(threading=IMMUTABLE) public class NTCredentials
Credentials implementation for Microsoft Windows platforms that includes
Windows specific attributes such as name of the domain the user belongs to.
| Constructor Summary | |
|---|---|
NTCredentials(String usernamePassword)
Deprecated. (4.5) will be replaced with String, char[] in 5.0 |
|
NTCredentials(String userName,
String password,
String workstation,
String domain)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
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()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated public NTCredentials(String usernamePassword)
String, char[] in 5.0
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()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||