public class NtCredentials extends ICredentials
ICredentials for use with the NTLM authentication scheme which requires additional
information| Constructor and Description |
|---|
NtCredentials()
Default constructor.
|
NtCredentials(String userName,
String password,
String host,
String domain)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDomain()
Retrieves the domain name to authenticate with.
|
String |
getHost()
Retrieves the host name of the computer originating the request.
|
void |
setDomain(String domain)
Sets the domain to authenticate with.
|
void |
setHost(String host)
Sets the host name of the computer originating the request.
|
getPassword, getUserName, setPassword, setUserNamepublic NtCredentials()
public NtCredentials(String userName, String password, String host, 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.host - The host the authentication request is originating from. Essentially, the
computer name for this machine.domain - The domain to authenticate within.public String getDomain()
setDomain(String)public String getHost()
public void setDomain(String domain)
domain - the NT domain to authenticate in.getDomain()public void setHost(String host)
host - the Host the user is logged into.Copyright © 2016 Jasig. All Rights Reserved.