public class NTCredentials extends java.lang.Object implements Credentials, java.io.Serializable
Credentials representation that includes
Windows specific attributes such as name of the domain the user belongs to.| Constructor and Description |
|---|
NTCredentials(java.lang.String userName,
char[] password,
java.lang.String workstation,
java.lang.String domain)
Constructor.
|
NTCredentials(java.lang.String userName,
char[] password,
java.lang.String workstation,
java.lang.String domain,
java.lang.String netbiosDomain)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getDomain()
Retrieves the name to authenticate with.
|
java.lang.String |
getNetbiosDomain()
Retrieves the netbios domain to authenticate with.
|
char[] |
getPassword() |
java.lang.String |
getUserName() |
java.security.Principal |
getUserPrincipal() |
java.lang.String |
getWorkstation()
Retrieves the netbios workstation name of the computer originating the request.
|
int |
hashCode() |
java.lang.String |
toString() |
public NTCredentials(java.lang.String userName,
char[] 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.public NTCredentials(java.lang.String userName,
char[] password,
java.lang.String workstation,
java.lang.String domain,
java.lang.String netbiosDomain)
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 netbios workstation name that the authentication request is originating from.
Essentially, the computer name for this machine.domain - The domain to authenticate within.netbiosDomain - The netbios version of the domain name.public java.security.Principal getUserPrincipal()
getUserPrincipal in interface Credentialspublic java.lang.String getUserName()
public char[] getPassword()
getPassword in interface Credentialspublic java.lang.String getDomain()
public java.lang.String getNetbiosDomain()
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