Class BasicAuthenticationCredentials

    • Constructor Detail

      • BasicAuthenticationCredentials

        public BasicAuthenticationCredentials​(String userName,
                                              String password)
        Instantiates a new basic authentication credential.
        Parameters:
        userName - basic auth user name
        password - basic auth password
    • Method Detail

      • getUserName

        public String getUserName()
        Returns:
        the user name of the credential
      • getPassword

        protected String getPassword()
        Returns:
        the password of the credential
      • applyCredentialsFilter

        public void applyCredentialsFilter​(okhttp3.OkHttpClient.Builder clientBuilder)
        Description copied from interface: ServiceClientCredentials
        Apply the credentials to the HTTP client builder.
        Specified by:
        applyCredentialsFilter in interface ServiceClientCredentials
        Parameters:
        clientBuilder - the builder for building up an OkHttpClient