Class UsernamePasswordCredentials

java.lang.Object
org.apache.hc.client5.http.auth.UsernamePasswordCredentials
All Implemented Interfaces:
Serializable, Credentials

@Contract(threading=IMMUTABLE) public class UsernamePasswordCredentials extends Object implements Credentials, Serializable
Simple Credentials representation based on a user name / password pair.
Since:
4.0
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • principal

      private final Principal principal
    • password

      private final char[] password
  • Constructor Details

    • UsernamePasswordCredentials

      public UsernamePasswordCredentials(Principal principal, char[] password)
      The constructor with the username and password arguments.
      Parameters:
      principal - the user principal
      password - the password
      Since:
      5.3
      See Also:
    • UsernamePasswordCredentials

      public UsernamePasswordCredentials(String username, char[] password)
      The constructor with the username and password arguments.
      Parameters:
      username - the user name
      password - the password
  • Method Details