public class UserCredentials extends Object
Constructor and Description |
---|
UserCredentials()
Creates an empty instance
|
UserCredentials(String username,
String password)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
String |
getPassword()
Returns the password.
|
String |
getUsername()
Returns the user name (or session ID, if it was set before instead of an
username)
|
void |
setPassword(String password)
Sets the password
|
void |
setUsername(String username)
Sets the username (or session ID)
|
String |
toString()
Formats user name and password.
|
public String getUsername()
public void setUsername(String username)
username
- The username or alternatively a session ID (in which case the
password will be ignored)public String getPassword()
public void setPassword(String password)
password
- See abovepublic String toString()
toString
in class Object
Object.toString()
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.