Class LdapConnInfo

  • All Implemented Interfaces:
    ILdapConnInfo

    public class LdapConnInfo
    extends java.lang.Object
    implements ILdapConnInfo
    class for reading ldap connection from the config store. ldap connection info: host, port, secure connection
    • Constructor Detail

      • LdapConnInfo

        public LdapConnInfo​(java.lang.String host,
                            int port,
                            boolean secure)
      • LdapConnInfo

        public LdapConnInfo​(java.lang.String host,
                            int port)
    • Method Detail

      • init

        public void init​(IConfigStore config)
                  throws EBaseException,
                         ELdapException
        initializes an instance from a config store. required parms: host, port optional parms: secure connection, authentication method & info.
        Specified by:
        init in interface ILdapConnInfo
        Parameters:
        config - Configuration store.
        Throws:
        ELdapException - Ldap related error found.
        EBaseException - Other errors and errors with params included in the config store.
      • getHost

        public java.lang.String getHost()
        Description copied from interface: ILdapConnInfo
        Return the name of the Host.
        Specified by:
        getHost in interface ILdapConnInfo
      • getPort

        public int getPort()
        Description copied from interface: ILdapConnInfo
        Return the port number of the host.
        Specified by:
        getPort in interface ILdapConnInfo
      • getVersion

        public int getVersion()
        Description copied from interface: ILdapConnInfo
        Return the Ldap version number of the Ldap server.
        Specified by:
        getVersion in interface ILdapConnInfo
      • getSecure

        public boolean getSecure()
        Description copied from interface: ILdapConnInfo
        Return whether or not the connection is secure.
        Specified by:
        getSecure in interface ILdapConnInfo
      • getFollowReferrals

        public boolean getFollowReferrals()
        Description copied from interface: ILdapConnInfo
        Return whether or not the server is to follow referrals to other servers when servicing a query.
        Specified by:
        getFollowReferrals in interface ILdapConnInfo