@Contract(threading=IMMUTABLE) public class NTCredentials extends Object implements Credentials, Serializable
Credentials representation that includes
 Windows specific attributes such as name of the domain the user belongs to.| Constructor and Description | 
|---|
| NTCredentials(String userName,
             char[] password,
             String workstation,
             String domain)Constructor. | 
| NTCredentials(String userName,
             char[] password,
             String workstation,
             String domain,
             String netbiosDomain)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o) | 
| String | getDomain()Retrieves the name to authenticate with. | 
| String | getNetbiosDomain()Retrieves the netbios domain to authenticate with. | 
| char[] | getPassword() | 
| String | getUserName() | 
| Principal | getUserPrincipal() | 
| String | getWorkstation()Retrieves the netbios workstation name of the computer originating the request. | 
| int | hashCode() | 
| String | toString() | 
public NTCredentials(String userName, char[] 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.public NTCredentials(String userName, char[] password, String workstation, String domain, 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 Principal getUserPrincipal()
getUserPrincipal in interface Credentialspublic String getUserName()
public char[] getPassword()
getPassword in interface Credentialspublic String getDomain()
public String getNetbiosDomain()
public String getWorkstation()
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.