public class AuthConfiguration extends Object
Name | Default | Description |
username |
REQUIRED | The username used to connect to the server. |
password |
REQUIRED | The password used to connect to the server. |
authScheme |
null | Optional, The authentication scheme used by the underlying
AuthScope class. Can be one of:
|
realm |
null | Optional, Realm to be used for NTLM Authentication. |
hostname |
null | The hostname of the Principal in NTLM Authentication. |
domain |
null | Optional, The domain used in NTLM Authentication. |
credentialType |
null | The Credentials implementation
to use for proxy authentication. Currently supports
UsernamePassword (UsernamePasswordCredentials ) and
NT (NTCredentials ) |
Modifier and Type | Field and Description |
---|---|
static String |
BASIC_AUTH_SCHEME |
static String |
NT_CREDS |
static String |
NTLM_AUTH_SCHEME |
static String |
USERNAME_PASSWORD_CREDS |
Constructor and Description |
---|
AuthConfiguration() |
AuthConfiguration(String username,
String password) |
AuthConfiguration(String username,
String password,
String authScheme,
String realm,
String hostname,
String domain,
String credentialType) |
Modifier and Type | Method and Description |
---|---|
String |
getAuthScheme() |
String |
getCredentialType() |
String |
getDomain() |
String |
getHostname() |
String |
getPassword() |
String |
getRealm() |
String |
getUsername() |
void |
setAuthScheme(String authScheme) |
void |
setCredentialType(String credentialType) |
void |
setDomain(String domain) |
void |
setHostname(String hostname) |
void |
setPassword(String password) |
void |
setRealm(String realm) |
void |
setUsername(String username) |
public static final String BASIC_AUTH_SCHEME
public static final String NTLM_AUTH_SCHEME
public static final String USERNAME_PASSWORD_CREDS
public static final String NT_CREDS
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public String getAuthScheme()
public void setAuthScheme(String authScheme)
public String getRealm()
public void setRealm(String realm)
public String getHostname()
public void setHostname(String hostname)
public String getDomain()
public void setDomain(String domain)
public String getCredentialType()
public void setCredentialType(String credentialType)
Copyright © 2018. All rights reserved.