Package com.netscape.cmscore.ldapconn
Class LdapConnInfo
- java.lang.Object
-
- com.netscape.cmscore.ldapconn.LdapConnInfo
-
public class LdapConnInfo extends java.lang.Object
class for reading ldap connection from the config store. ldap connection info: host, port, secure connection
-
-
Field Summary
Fields Modifier and Type Field Description static int
LDAP_VERSION_2
static int
LDAP_VERSION_3
static java.lang.String
PROP_FOLLOW_REFERRALS
static java.lang.String
PROP_HOST
static java.lang.String
PROP_HOST_DEFAULT
static java.lang.String
PROP_PORT
static java.lang.String
PROP_PORT_DEFAULT
static java.lang.String
PROP_SECURE
static java.lang.String
PROP_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 boolean
getFollowReferrals()
java.lang.String
getHost()
int
getPort()
boolean
getSecure()
int
getVersion()
void
init(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:
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(LDAPConnectionConfig config) throws EBaseException, ELdapException
initializes an instance from a config store. required parms: host, port optional parms: secure connection, authentication method and info.- Throws:
EBaseException
ELdapException
-
getHost
public java.lang.String getHost()
-
getPort
public int getPort()
-
getVersion
public int getVersion()
-
getSecure
public boolean getSecure()
-
getFollowReferrals
public boolean getFollowReferrals()
-
-