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 boolean
getFollowReferrals()
Return whether or not the server is to follow referrals to other servers when servicing a query.java.lang.String
getHost()
Return the name of the Host.int
getPort()
Return the port number of the host.boolean
getSecure()
Return whether or not the connection is secure.int
getVersion()
Return the Ldap version number of the Ldap server.void
init(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:
EBaseException
ELdapException
-
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 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:ILdapConnInfo
Return the name of the Host.- Specified by:
getHost
in interfaceILdapConnInfo
-
getPort
public int getPort()
Description copied from interface:ILdapConnInfo
Return the port number of the host.- Specified by:
getPort
in interfaceILdapConnInfo
-
getVersion
public int getVersion()
Description copied from interface:ILdapConnInfo
Return the Ldap version number of the Ldap server.- Specified by:
getVersion
in interfaceILdapConnInfo
-
getSecure
public boolean getSecure()
Description copied from interface:ILdapConnInfo
Return whether or not the connection is secure.- Specified by:
getSecure
in interfaceILdapConnInfo
-
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 interfaceILdapConnInfo
-
-