public class LoginDefinition
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
LoginDefinition(org.w3c.dom.Element row) |
|
LoginDefinition(UC4HostName host,
java.lang.String hostType,
java.lang.String loginInfo)
Constructs a new
LoginDefinition using the specified values. |
|
LoginDefinition(UC4HostName host,
java.lang.String hostType,
java.lang.String loginInfo,
boolean makeHostTypeUpperCase)
Constructs a new
LoginDefinition using the specified values. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
UC4HostName |
getHost()
Returns the name of the Agent or a generic host name.
|
java.lang.String |
getHostType()
Returns the host type.
|
java.lang.String |
getLoginInfo()
Returns the login information.
|
java.lang.String |
getVault()
Returns the External vault.
|
int |
hashCode() |
void |
setHost(UC4HostName host)
Sets the name of the Agent or a generic host name.
|
void |
setHostType(java.lang.String hostType)
Sets the host type.
|
void |
setHostType(java.lang.String hostType,
boolean makeUpperCase)
Sets the host type.
|
void |
setLoginInfo(java.lang.String loginInfo)
Sets the login information.
|
void |
setPassword(java.lang.String passw)
Sets the password.
|
void |
setPasswords(java.lang.String password1,
java.lang.String password2,
java.lang.String password3)
Sets up to 3 passwords.
|
void |
setVault(java.lang.String vault)
Sets External vault.
|
protected void |
store(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element logins,
ConnectionAttributes sessionInfo) |
protected LoginDefinition(org.w3c.dom.Element row)
public LoginDefinition(UC4HostName host, java.lang.String hostType, java.lang.String loginInfo)
LoginDefinition
using the specified values.host
- Host name, use an empty UC4HostName to add the login definition for all host of this host typehostType
- Host typeloginInfo
- Login informationpublic LoginDefinition(UC4HostName host, java.lang.String hostType, java.lang.String loginInfo, boolean makeHostTypeUpperCase)
LoginDefinition
using the specified values.host
- Host name, use an empty UC4HostName to add the login definition for all host of this host typehostType
- Host typeloginInfo
- Login informationmakeHostTypeUpperCase
- flag for making the host type string upper casepublic void setPassword(java.lang.String passw)
setHost
passw
- Passwordpublic void setPasswords(java.lang.String password1, java.lang.String password2, java.lang.String password3)
password1
is required, other parameters are optional and can be set to null
.password1
- Password1password2
- Password2password3
- Password3public UC4HostName getHost()
public void setHost(UC4HostName host)
setPassword
or setPasswords
to set the password(s) again.host
- Name of the Agentpublic java.lang.String getHostType()
public void setHostType(java.lang.String hostType)
hostType
- Host typepublic void setHostType(java.lang.String hostType, boolean makeUpperCase)
hostType
- Host typemakeUpperCase
- flag for making the host type string upper case.public void setVault(java.lang.String vault)
vault
- Stringpublic java.lang.String getVault()
public java.lang.String getLoginInfo()
public void setLoginInfo(java.lang.String loginInfo)
loginInfo
- Login informationprotected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element logins, ConnectionAttributes sessionInfo)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object