Modifier and Type | Field and Description |
---|---|
static String |
PROP_PASSWORD |
static String |
PROP_USER |
Constructor and Description |
---|
ConnectionInformation() |
public static final String PROP_PASSWORD
public static final String PROP_USER
public static ConnectionInformation fromURI(String uri)
public static ConnectionInformation fromURI(URI uri)
public void setUser(String user)
user
- the user name to set, can be null
in order to
reset the passwordpublic void setPassword(String password)
password
- the password to set, can be null
in order to
reset the passwordpublic String getPassword()
null
if none was setpublic String getUser()
public URI toUri()
public String getDriver()
public void setDriver(String driver)
public String getInterface()
public void setInterface(String interface1)
public Integer getSecondaryTarget()
public void setSecondaryTarget(Integer secondaryTarget)
public String getTarget()
public void setTarget(String target)
public boolean isValid()
public ConnectionInformation clone()
public String toMaskedString(String mask)
The method actually replaces the password with the mask if it is set and
calls toString()
on the result. The current instance is not
altered in the process.
mask
- The mask to use instead of the password or null
if the password should simply be removedtoString()
public String toMaskedString()
toMaskedString(String)
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.