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 usernameREQUIRED The username used to connect to the server. passwordREQUIRED The password used to connect to the server. authSchemenull Optional, The authentication scheme used by the underlying AuthScopeclass. Can be one of:- Basic
- NTLM
realmnull Optional, Realm to be used for NTLM Authentication. hostnamenull The hostname of the Principal in NTLM Authentication. domainnull Optional, The domain used in NTLM Authentication. credentialTypenull The Credentialsimplementation to use for proxy authentication. Currently supports UsernamePassword (UsernamePasswordCredentials) and NT (NTCredentials)
-
-
Field Summary
Fields Modifier and Type Field Description static StringBASIC_AUTH_SCHEMEstatic StringNT_CREDSstatic StringNTLM_AUTH_SCHEMEstatic StringUSERNAME_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 StringgetAuthScheme()@Nullable StringgetCredentialType()@Nullable StringgetDomain()@Nullable StringgetHostname()StringgetPassword()@Nullable StringgetRealm()StringgetUsername()voidsetAuthScheme(String authScheme)voidsetCredentialType(String credentialType)voidsetDomain(String domain)voidsetHostname(String hostname)voidsetPassword(String password)voidsetRealm(String realm)voidsetUsername(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)
-
-