Package org.opends.quicksetup.installer
Class AuthenticationData
- java.lang.Object
-
- org.opends.quicksetup.installer.AuthenticationData
-
public class AuthenticationData extends Object
This class is used to provide a data model for the different parameters used to connect to a server that we want to replicate contents with.- See Also:
DataReplicationOptions
-
-
Constructor Summary
Constructors Constructor Description AuthenticationData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DNgetDn()Returns the Authentication DN.HostPortgetHostPort()Returns the host name and port to connect to.intgetPort()Returns the server LDAP port.StringgetPwd()Returns the authentication password.voidsetDn(DN dn)Sets the Authentication DN.voidsetHostPort(HostPort hostport)Sets the host name to connect to.voidsetPort(int port)Sets the server LDAP port.voidsetPwd(String pwd)Sets the authentication password.voidsetUseSecureConnection(boolean useSecureConnection)Tells to use a secure connection or not.booleanuseSecureConnection()Returns whether to use a secure connection or not.
-
-
-
Method Detail
-
setPort
public void setPort(int port)
Sets the server LDAP port.- Parameters:
port- the server LDAP port.
-
getPort
public int getPort()
Returns the server LDAP port.- Returns:
- the server LDAP port.
-
getDn
public DN getDn()
Returns the Authentication DN.- Returns:
- the Authentication DN.
-
setDn
public void setDn(DN dn)
Sets the Authentication DN.- Parameters:
dn- the Authentication DN.
-
getPwd
public String getPwd()
Returns the authentication password.- Returns:
- the authentication password.
-
setPwd
public void setPwd(String pwd)
Sets the authentication password.- Parameters:
pwd- the authentication password.
-
getHostPort
public HostPort getHostPort()
Returns the host name and port to connect to.- Returns:
- the host name and port to connect to.
-
setHostPort
public void setHostPort(HostPort hostport)
Sets the host name to connect to.- Parameters:
hostport- the host name and port to connect to.
-
useSecureConnection
public boolean useSecureConnection()
Returns whether to use a secure connection or not.- Returns:
trueif we must use a secure connection,falseotherwise.
-
setUseSecureConnection
public void setUseSecureConnection(boolean useSecureConnection)
Tells to use a secure connection or not.- Parameters:
useSecureConnection- use a secure connection or not.
-
-