public class LoginCredentials extends Object
Constructor and Description |
---|
LoginCredentials()
Creates a new instance
|
LoginCredentials(String[] args)
Creates a new instance.
|
LoginCredentials(String username,
String password,
String host)
Creates a new instance with the given credentials and default port
|
LoginCredentials(String username,
String password,
String host,
int port)
Creates a new instance with the given credentials
|
Modifier and Type | Method and Description |
---|---|
String |
getApplicationName() |
List<String> |
getArguments()
Returns the arguments if set as a read-only list.
|
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(String applicationName)
Set the application name
|
void |
setCheckNetwork(boolean checkNetwork)
Enable/Disable network checks
|
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(String[] args)
args
- The connection arguments.public LoginCredentials(String username, String password, String host)
username
- The username or alternatively a session ID (in which case
the password will be ignored)password
- The passwordhost
- The server hostnamepublic LoginCredentials(String username, String password, 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 hostnameport
- The server portpublic List<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 String getApplicationName()
public void setApplicationName(String applicationName)
applicationName
- See abovepublic UserCredentials getUser()
UserCredentials
public ServerInformation getServer()
ServerInformation
public long getGroupID()
public void setGroupID(long groupID)
groupID
- The group id
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.