public class Login
extends java.lang.Object
ServiceFactory
. For more complicated uses,
Properties
can also be used. In which case, the constant
strings
provided in this class can be used as the
keys to the properties instance
passed to
ServiceFactory.ServiceFactory(Properties)
.ServiceFactory
Modifier and Type | Field and Description |
---|---|
static Login |
GUEST
Login constant which has username and password values set
to null and other values set to their default. |
static java.lang.String |
OMERO_EVENT
Java property name for use in configuration of client login.
|
static java.lang.String |
OMERO_GROUP
Java property name for use in configuration of client login.
|
static java.lang.String |
OMERO_PASS
Java property name for use in configuration of client login.
|
static java.lang.String |
OMERO_USER
Java property name for use in configuration of client login.
|
Constructor and Description |
---|
Login(java.lang.String user,
java.lang.String password)
standard constructor which leaves OMERO_GROUP and OMERO_EVENT null.
|
Login(java.lang.String user,
java.lang.String password,
java.lang.String group,
java.lang.String event)
extended constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Properties |
asProperties()
produces a copy of the internal fields as a
Properties
instance. |
java.lang.String |
getEvent()
simple getter for the event type passed into the constructor
|
java.lang.String |
getGroup()
simple getter for the group name passed into the constructor
|
java.lang.String |
getName()
simple getter for the user name passed into the constructor
|
java.lang.String |
getPassword()
simple getter for the password passed into the constructor
|
public static final java.lang.String OMERO_USER
public static final java.lang.String OMERO_GROUP
public static final java.lang.String OMERO_PASS
public static final java.lang.String OMERO_EVENT
public Login(java.lang.String user, java.lang.String password)
user
- Experimenter.getOmeName()
. Not null.password
- Cleartext password. Not null.public Login(java.lang.String user, java.lang.String password, java.lang.String group, java.lang.String event)
Login(String, String)
, user and
password may not be null.user
- Experimenter.getOmeName()
. Not null.password
- Cleartext password. Not null.group
- Group name. May be null.event
- Enumeration value of the EventType. May be null.public java.util.Properties asProperties()
Properties
instance. Only those keys are present for which a field is non-null.public java.lang.String getName()
public java.lang.String getPassword()
GUEST
public java.lang.String getGroup()
group name
.
May be null.public java.lang.String getEvent()
event type
. May be null.
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.