public class LoginCredentials
extends java.lang.Object
Constructor and Description |
---|
LoginCredentials()
Creates a new instance
|
LoginCredentials(java.lang.String[] args)
Creates a new instance.
|
LoginCredentials(java.lang.String username,
java.lang.String password,
java.lang.String host)
Creates a new instance with the given credentials and default port
|
LoginCredentials(java.lang.String username,
java.lang.String password,
java.lang.String host,
int port)
Creates a new instance with the given credentials
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApplicationName() |
java.util.List<java.lang.String> |
getArguments()
Returns the arguments if set as a read-only list.
|
boolean |
getCheckVersion()
Returns whether the version check is enabled
|
float |
getCompression()
Returns the compression level.
|
long |
getGroupID()
Returns the OMERO group identifier.
|
ServerInformation |
getServer()
Returns the server information.
|
UserCredentials |
getUser()
Returns the credentials.
|
boolean |
isCheckNetwork() |
boolean |
isEncryption() |
void |
setApplicationName(java.lang.String applicationName)
Set the application name
|
void |
setCheckNetwork(boolean checkNetwork)
Enable/Disable network checks
|
void |
setCheckVersion(boolean checkVersion)
Enable/Disable version check
|
void |
setCompression(float compression)
Sets the compression level
|
void |
setEncryption(boolean encryption)
Enable/Disable encryption
|
void |
setGroupID(long groupID)
Sets the groupID to use for the connection
|
public LoginCredentials()
public LoginCredentials(java.lang.String[] args)
args
- The connection arguments. Note: When using this constructor
the '#' character has to be escaped with a backslash!public LoginCredentials(java.lang.String username, java.lang.String password, java.lang.String host)
username
- The username or alternatively a session ID (in which case
the password will be ignored)password
- The passwordhost
- The server hostname or websocket URLpublic LoginCredentials(java.lang.String username, java.lang.String password, java.lang.String host, int port)
username
- The username or alternatively a session ID (in which case
the password will be ignored)password
- The passwordhost
- The server hostname or websocket URLport
- The server portpublic java.util.List<java.lang.String> getArguments()
public boolean isEncryption()
public void setEncryption(boolean encryption)
encryption
- See abovepublic boolean isCheckNetwork()
public void setCheckNetwork(boolean checkNetwork)
checkNetwork
- See abovepublic float getCompression()
public void setCompression(float compression)
compression
- See abovepublic java.lang.String getApplicationName()
public void setApplicationName(java.lang.String applicationName)
applicationName
- See abovepublic UserCredentials getUser()
UserCredentials
public ServerInformation getServer()
ServerInformation
public long getGroupID()
public void setGroupID(long groupID)
groupID
- The group idpublic boolean getCheckVersion()
public void setCheckVersion(boolean checkVersion)
checkVersion
- Whether to check the client and server versions are compatible