Credentials implementation for Microsoft Windows platforms that includes
Windows specific attributes such as name of the domain the user belongs to.
| Modifier and Type | Field and Description |
|---|---|
| private final String | password
Password |
| private final NTUserPrincipal | principal
The user principal |
| private static final long | |
| private final String | workstation
The host the authentication request is originating from. |
| Access | Constructor and Description |
|---|---|
| public | NTCredentials(final String
the domain/username:password formed string usernamePassword)
Deprecated
(4.5) will be replaced with
The constructor with the fully qualified username and password combined
string argument.
String, char[] in 5.0
|
| public | NTCredentials(final String
The user name. This should not include the domain to authenticate with.
For example: "user" is correct whereas "DOMAIN\user" is not. userName, final String The password. password, final String The workstation the authentication request is originating from.
Essentially, the computer name for this machine. workstation, final String The domain to authenticate within. domain)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object
the reference object with which to compare. o)Overrides java. |
| public String | Returns: String the domain these credentials are intended to authenticate with.Retrieves the name to authenticate with. |
| public String | |
| public String | |
| public Principal | |
| public String | Returns: String the workstation the user is logged into.Retrieves the workstation name of the computer originating the request. |
| public int | |
| public String |
| password | back to summary |
|---|---|
| private final String password Password | |
| principal | back to summary |
|---|---|
| private final NTUserPrincipal principal The user principal | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| workstation | back to summary |
|---|---|
| private final String workstation The host the authentication request is originating from. | |
| NTCredentials | back to summary |
|---|---|
| public NTCredentials(final String usernamePassword)
Deprecated (4.5) will be replaced with The constructor with the fully qualified username and password combined string argument.
| |
| NTCredentials | back to summary |
|---|---|
| public NTCredentials(final String userName, final String password, final String workstation, final String domain) Constructor.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getDomain | back to summary |
|---|---|
| public String getDomain() Retrieves the name to authenticate with.
| |
| getPassword | back to summary |
|---|---|
| public String getPassword() Implements org.
| |
| getUserName | back to summary |
|---|---|
| public String getUserName() | |
| getUserPrincipal | back to summary |
|---|---|
| public Principal getUserPrincipal() Implements org.
| |
| getWorkstation | back to summary |
|---|---|
| public String getWorkstation() Retrieves the workstation name of the computer originating the request.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |