Package com.netscape.cmscore.ldapconn
Class LdapConnInfo
- java.lang.Object
-
- com.netscape.cmscore.ldapconn.LdapConnInfo
-
public class LdapConnInfo extends java.lang.Objectclass for reading ldap connection from the config store. ldap connection info: host, port, secure connection
-
-
Field Summary
Fields Modifier and Type Field Description static intLDAP_VERSION_2static intLDAP_VERSION_3static java.lang.StringPROP_FOLLOW_REFERRALSstatic java.lang.StringPROP_HOSTstatic java.lang.StringPROP_HOST_DEFAULTstatic java.lang.StringPROP_PORTstatic java.lang.StringPROP_PORT_DEFAULTstatic java.lang.StringPROP_SECUREstatic java.lang.StringPROP_VERSION
-
Constructor Summary
Constructors Constructor Description LdapConnInfo(LDAPConnectionConfig 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()java.lang.StringgetHost()intgetPort()booleangetSecure()intgetVersion()voidinit(LDAPConnectionConfig config)initializes an instance from a config store.
-
-
-
Field Detail
-
PROP_HOST
public static final java.lang.String PROP_HOST
- See Also:
- Constant Field Values
-
PROP_PORT
public static final java.lang.String PROP_PORT
- See Also:
- Constant Field Values
-
PROP_SECURE
public static final java.lang.String PROP_SECURE
- See Also:
- Constant Field Values
-
PROP_VERSION
public static final java.lang.String PROP_VERSION
- See Also:
- Constant Field Values
-
PROP_FOLLOW_REFERRALS
public static final java.lang.String PROP_FOLLOW_REFERRALS
- See Also:
- Constant Field Values
-
PROP_HOST_DEFAULT
public static final java.lang.String PROP_HOST_DEFAULT
- See Also:
- Constant Field Values
-
PROP_PORT_DEFAULT
public static final java.lang.String PROP_PORT_DEFAULT
- See Also:
- Constant Field Values
-
LDAP_VERSION_2
public static final int LDAP_VERSION_2
- See Also:
- Constant Field Values
-
LDAP_VERSION_3
public static final int LDAP_VERSION_3
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LdapConnInfo
public LdapConnInfo(LDAPConnectionConfig 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(LDAPConnectionConfig config) throws EBaseException, ELdapException
initializes an instance from a config store. required parms: host, port optional parms: secure connection, authentication method & info.- Throws:
EBaseExceptionELdapException
-
getHost
public java.lang.String getHost()
-
getPort
public int getPort()
-
getVersion
public int getVersion()
-
getSecure
public boolean getSecure()
-
getFollowReferrals
public boolean getFollowReferrals()
-
-