Package com.netscape.cmscore.ldapconn
Class LdapConnInfo
- java.lang.Object
-
- com.netscape.cmscore.ldapconn.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
-
-
Field Summary
-
Fields inherited from interface com.netscape.certsrv.ldap.ILdapConnInfo
LDAP_VERSION_2, LDAP_VERSION_3, PROP_FOLLOW_REFERRALS, PROP_HOST, PROP_HOST_DEFAULT, PROP_PORT, PROP_PORT_DEFAULT, PROP_PROTOCOL, PROP_SECURE
-
-
Constructor Summary
Constructors Constructor Description LdapConnInfo(IConfigStore config)default constructor.LdapConnInfo(java.lang.String host, int port)LdapConnInfo(java.lang.String host, int port, boolean secure)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetFollowReferrals()Return whether or not the server is to follow referrals to other servers when servicing a query.java.lang.StringgetHost()Return the name of the Host.intgetPort()Return the port number of the host.booleangetSecure()Return whether or not the connection is secure.intgetVersion()Return the Ldap version number of the Ldap server.voidinit(IConfigStore config)initializes an instance from a config store.
-
-
-
Constructor Detail
-
LdapConnInfo
public LdapConnInfo(IConfigStore config) throws EBaseException, ELdapException
default constructor. must be followed by init(IConfigStore)- Throws:
EBaseExceptionELdapException
-
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:
initin interfaceILdapConnInfo- 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:ILdapConnInfoReturn the name of the Host.- Specified by:
getHostin interfaceILdapConnInfo
-
getPort
public int getPort()
Description copied from interface:ILdapConnInfoReturn the port number of the host.- Specified by:
getPortin interfaceILdapConnInfo
-
getVersion
public int getVersion()
Description copied from interface:ILdapConnInfoReturn the Ldap version number of the Ldap server.- Specified by:
getVersionin interfaceILdapConnInfo
-
getSecure
public boolean getSecure()
Description copied from interface:ILdapConnInfoReturn whether or not the connection is secure.- Specified by:
getSecurein interfaceILdapConnInfo
-
getFollowReferrals
public boolean getFollowReferrals()
Description copied from interface:ILdapConnInfoReturn whether or not the server is to follow referrals to other servers when servicing a query.- Specified by:
getFollowReferralsin interfaceILdapConnInfo
-
-