Class 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 Detail

      • AuthenticationData

        public AuthenticationData()
    • 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:
        true if we must use a secure connection, false otherwise.
      • setUseSecureConnection

        public void setUseSecureConnection​(boolean useSecureConnection)
        Tells to use a secure connection or not.
        Parameters:
        useSecureConnection - use a secure connection or not.