Package io.dropwizard.client.proxy
Class AuthConfiguration
- java.lang.Object
-
- io.dropwizard.client.proxy.AuthConfiguration
-
public class AuthConfiguration extends Object
Represents a configuration of credentials for either Username Password or NT credentials Configuration Parameters: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:- Basic
- NTLM
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
)
-
-
Field Summary
Fields Modifier and Type Field Description static String
BASIC_AUTH_SCHEME
static String
NT_CREDS
static String
NTLM_AUTH_SCHEME
static String
USERNAME_PASSWORD_CREDS
-
Constructor Summary
Constructors Constructor Description AuthConfiguration()
AuthConfiguration(String username, String password)
AuthConfiguration(String username, String password, String authScheme, String realm, String hostname, String domain, String credentialType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable String
getAuthScheme()
@Nullable String
getCredentialType()
@Nullable String
getDomain()
@Nullable String
getHostname()
String
getPassword()
@Nullable 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)
-
-
-
Field Detail
-
BASIC_AUTH_SCHEME
public static final String BASIC_AUTH_SCHEME
- See Also:
- Constant Field Values
-
NTLM_AUTH_SCHEME
public static final String NTLM_AUTH_SCHEME
- See Also:
- Constant Field Values
-
USERNAME_PASSWORD_CREDS
public static final String USERNAME_PASSWORD_CREDS
- See Also:
- Constant Field Values
-
NT_CREDS
public static final String NT_CREDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUsername
public String getUsername()
-
setUsername
public void setUsername(String username)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
getAuthScheme
public @Nullable String getAuthScheme()
-
setAuthScheme
public void setAuthScheme(String authScheme)
-
getRealm
public @Nullable String getRealm()
-
setRealm
public void setRealm(String realm)
-
getHostname
public @Nullable String getHostname()
-
setHostname
public void setHostname(String hostname)
-
getDomain
public @Nullable String getDomain()
-
setDomain
public void setDomain(String domain)
-
getCredentialType
public @Nullable String getCredentialType()
-
setCredentialType
public void setCredentialType(String credentialType)
-
-