Class 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)
    • Constructor Detail

      • AuthConfiguration

        public AuthConfiguration()
      • AuthConfiguration

        public AuthConfiguration​(String username,
                                 String password)
    • Method Detail

      • getUsername

        public String getUsername()
      • setUsername

        public void setUsername​(String username)
      • getPassword

        public String getPassword()
      • setPassword

        public void setPassword​(String password)
      • getAuthScheme

        @Nullable
        public String getAuthScheme()
      • setAuthScheme

        public void setAuthScheme​(String authScheme)
      • getRealm

        @Nullable
        public String getRealm()
      • setRealm

        public void setRealm​(String realm)
      • getHostname

        @Nullable
        public String getHostname()
      • setHostname

        public void setHostname​(String hostname)
      • getDomain

        @Nullable
        public String getDomain()
      • setDomain

        public void setDomain​(String domain)
      • getCredentialType

        @Nullable
        public String getCredentialType()
      • setCredentialType

        public void setCredentialType​(String credentialType)