uk.ac.starlink.auth

## Class UserPass

- java.lang.Object
- - uk.ac.starlink.auth.UserPass

-     public class UserPass
      extends java.lang.Object

  Aggregates a username and password. The password is supplied, and should ideally be always manipulated, as an array of characters rather than a String for security reasons, following practice elsewhere in the J2SE. However the difference between using char[] and String is not all that great.
  Since:
    15 Jun 2020

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `UserPass(java.lang.String username, char[] password)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(java.lang.Object o)`
    `char[]` | `getPassword()` Returns the password.
    `java.lang.String` | `getUsername()` Returns the username.
    `int` | `hashCode()`

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

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

- - ### Constructor Detail

    - #### UserPass

          public UserPass(java.lang.String username,
                          char[] password)

      Constructor.
      Parameters:
        `username` - user name
        `password` - password

  - ### Method Detail

    - #### getUsername

          public java.lang.String getUsername()

      Returns the username.
      Returns:
        user name; may be zero length, but not null

    - #### getPassword

          public char[] getPassword()

      Returns the password.
      Returns:
        password; may be zero length, but not null

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object o)

      Overrides:
        `equals` in class `java.lang.Object`