Class UserCredentials

java.lang.Object
eu.europa.esig.dss.service.http.commons.UserCredentials
All Implemented Interfaces:
Serializable

public class UserCredentials extends Object implements Serializable
This class represents a user credentials object used to authenticate to a remote host
See Also:
  • Constructor Details

    • UserCredentials

      public UserCredentials()
      Empty constructor
    • UserCredentials

      @Deprecated public UserCredentials(String username, String password)
      Deprecated.
      since DSS 5.12. Use new UserCredentials(String username, char[] password)
      Default constructor
      Parameters:
      username - String
      password - String
    • UserCredentials

      public UserCredentials(String username, char[] password)
      Default constructor
      Parameters:
      username - String
      password - a char array representing the password string
  • Method Details

    • getUsername

      public String getUsername()
      Gets the username
      Returns:
      String
    • setUsername

      public void setUsername(String username)
      Sets the username
      Parameters:
      username - String
    • getPassword

      public char[] getPassword()
      Gets the password
      Returns:
      String
    • setPassword

      @Deprecated public void setPassword(String password)
      Deprecated.
      since DSS 5.12. Use #setPassword(char[] password)
      Sets the password
      Parameters:
      password - String
    • setPassword

      public void setPassword(char[] password)
      Sets the password
      Parameters:
      password - String