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 Details

  • Constructor Details

    • AuthConfiguration

      public AuthConfiguration()
    • AuthConfiguration

      public AuthConfiguration(String username, String password)
    • AuthConfiguration

      public AuthConfiguration(String username, String password, String authScheme, String realm, String hostname, String domain, String credentialType)
  • Method Details

    • 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)