|
||||||||||
| 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(java.lang.String usernamePassword)
The constructor with the fully qualified username and password combined string argument. |
|
NTCredentials(java.lang.String userName,
java.lang.String password,
java.lang.String workstation,
java.lang.String domain)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getDomain()
Retrieves the name to authenticate with. |
java.lang.String |
getPassword()
|
java.lang.String |
getUserName()
|
java.security.Principal |
getUserPrincipal()
|
java.lang.String |
getWorkstation()
Retrieves the workstation name of the computer originating the request. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NTCredentials(java.lang.String usernamePassword)
usernamePassword - the domain/username:password formed string
public NTCredentials(java.lang.String userName,
java.lang.String password,
java.lang.String workstation,
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.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 java.security.Principal getUserPrincipal()
getUserPrincipal in interface Credentialspublic java.lang.String getUserName()
public java.lang.String getPassword()
getPassword in interface Credentialspublic java.lang.String getDomain()
public java.lang.String getWorkstation()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||