Class UserPassword

java.lang.Object
esendex.sdk.java.service.auth.UserPassword

public final class UserPassword extends Object
Simple holder for a user/password pair. Used for Basic Authentication and initial aquisition of a session for Session Authentication.
Author:
Mike Whittaker
  • Constructor Details

    • UserPassword

      public UserPassword(String user, String password)
      Creates a UserPassword with the provided arguments.
      Parameters:
      user - must not be null
      password - must not be null
    • UserPassword

      public UserPassword()
      Creates a UserPassword with empty String fields. A safe non authenticating object.
  • Method Details

    • getUser

      public String getUser()
      Retrieve the user.
      Returns:
      the user
    • getPassword

      public String getPassword()
      Retrieve the password.
      Returns:
      the password
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object