com.ansys.ingress.client.api.utils

## Class HttpAuthenticator

- java.lang.Object
- - java.net.Authenticator
  - - com.ansys.ingress.client.api.utils.HttpAuthenticator

-     public class HttpAuthenticator
      extends java.net.Authenticator

  HttpAuthenticator is used to retrieve the credentials used for HTTP authentication.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class java.net.Authenticator

      `java.net.Authenticator.RequestorType`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `HttpAuthenticator()` Creates a new instance of HttpAuthenticator.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected java.net.PasswordAuthentication` | `getPasswordAuthentication()`
    `void` | `setPassword(char[] password)` Sets the password.
    `void` | `setUsername(java.lang.String username)` Sets the username.

    - ### Methods inherited from class java.net.Authenticator

      `getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefault`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### HttpAuthenticator

          public HttpAuthenticator()

      Creates a new instance of HttpAuthenticator.

  - ### Method Detail

    - #### getPasswordAuthentication

          protected java.net.PasswordAuthentication getPasswordAuthentication()

      Overrides:
        `getPasswordAuthentication` in class `java.net.Authenticator`

    - #### setUsername

          public void setUsername(java.lang.String username)

      Sets the username.
      Parameters:
        `username` - the username to set

    - #### setPassword

          public void setPassword(char[] password)

      Sets the password.
      Parameters:
        `password` - the password to set