Class UserCredentials
java.lang.Object
eu.europa.esig.dss.service.http.commons.UserCredentials
- All Implemented Interfaces:
Serializable
This class represents a user credentials object used to authenticate to a remote host
- See Also:
-
Constructor Summary
ConstructorDescriptionEmpty constructorUserCredentials
(String username, char[] password) Default constructorUserCredentials
(String username, String password) Deprecated.since DSS 5.12. -
Method Summary
Modifier and TypeMethodDescriptionchar[]
Gets the passwordGets the usernamevoid
setPassword
(char[] password) Sets the passwordvoid
setPassword
(String password) Deprecated.since DSS 5.12.void
setUsername
(String username) Sets the username
-
Constructor Details
-
UserCredentials
public UserCredentials()Empty constructor -
UserCredentials
Deprecated.since DSS 5.12. Usenew UserCredentials(String username, char[] password)
Default constructor -
UserCredentials
Default constructor- Parameters:
username
-String
password
- a char array representing the password string
-
-
Method Details
-
getUsername
Gets the username- Returns:
String
-
setUsername
Sets the username- Parameters:
username
-String
-
getPassword
public char[] getPassword()Gets the password- Returns:
String
-
setPassword
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
-