|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.ldap.client.api.LdapConnectionConfig
public class LdapConnectionConfig
A class to hold the configuration for creating an LdapConnection.
| Field Summary | |
|---|---|
static String |
DEFAULT_LDAP_HOST
The default host : localhost |
static int |
DEFAULT_LDAP_PORT
Default ports for LDAP |
static int |
DEFAULT_LDAPS_PORT
Default port for LDAPS |
static String |
DEFAULT_SSL_PROTOCOL
the default protocol used for creating SSL context |
static long |
DEFAULT_TIMEOUT
The default timeout for operation : 30 seconds |
static int |
LDAP_V3
The LDAP version |
| Constructor Summary | |
|---|---|
LdapConnectionConfig()
Creates a default LdapConnectionConfig instance |
|
| Method Summary | |
|---|---|
org.apache.directory.api.ldap.codec.api.BinaryAttributeDetector |
getBinaryAttributeDetector()
|
String |
getCredentials()
Gets the credentials. |
String |
getDefaultLdapHost()
Gets the default LDAP host. |
int |
getDefaultLdapPort()
Gets the default LDAP port. |
int |
getDefaultLdapsPort()
Gets the default LDAPS port. |
long |
getDefaultTimeout()
Gets the default timeout. |
String[] |
getEnabledCipherSuites()
Gets the cipher suites which are enabled. |
KeyManager[] |
getKeyManagers()
Gets the key managers. |
String |
getLdapHost()
Gets the LDAP host. |
int |
getLdapPort()
Gets the LDAP port. |
String |
getName()
Gets the name that is used to authenticate the user. |
SecureRandom |
getSecureRandom()
Gets the secure random. |
String |
getSslProtocol()
Gets the SSL protocol. |
int |
getSupportedLdapVersion()
Gets the supported LDAP version. |
TrustManager[] |
getTrustManagers()
Gets the trust managers. |
boolean |
isUseSsl()
Checks if SSL (ldaps://) is used. |
void |
setBinaryAttributeDetector(org.apache.directory.api.ldap.codec.api.BinaryAttributeDetector binaryAttributeDetector)
|
void |
setCredentials(String credentials)
Sets the credentials. |
void |
setEnabledCipherSuites(String[] enabledCipherSuites)
Sets the cipher suites which are enabled |
void |
setKeyManagers(KeyManager[] keyManagers)
Sets the key managers. |
void |
setLdapHost(String ldapHost)
Sets the LDAP host. |
void |
setLdapPort(int ldapPort)
Sets the LDAP port. |
void |
setName(String name)
Sets the name which is used to authenticate the user. |
void |
setSecureRandom(SecureRandom secureRandom)
Sets the secure random. |
void |
setSslProtocol(String sslProtocol)
Sets the SSL protocol. |
void |
setTrustManagers(TrustManager... trustManagers)
Sets the trust managers. |
void |
setUseSsl(boolean useSsl)
Sets whether SSL should be used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_LDAP_PORT
public static final int DEFAULT_LDAPS_PORT
public static final String DEFAULT_LDAP_HOST
public static final int LDAP_V3
public static final long DEFAULT_TIMEOUT
public static final String DEFAULT_SSL_PROTOCOL
| Constructor Detail |
|---|
public LdapConnectionConfig()
| Method Detail |
|---|
public boolean isUseSsl()
public void setUseSsl(boolean useSsl)
useSsl - true to use SSLpublic int getLdapPort()
public void setLdapPort(int ldapPort)
ldapPort - the new LDAP portpublic String getLdapHost()
public void setLdapHost(String ldapHost)
ldapHost - the new LDAP hostpublic String getName()
public void setName(String name)
name - the new namepublic String getCredentials()
public void setCredentials(String credentials)
credentials - the new credentialspublic int getDefaultLdapPort()
public int getDefaultLdapsPort()
public String getDefaultLdapHost()
public long getDefaultTimeout()
public int getSupportedLdapVersion()
public TrustManager[] getTrustManagers()
public void setTrustManagers(TrustManager... trustManagers)
trustManagers - the new trust managerspublic String getSslProtocol()
public void setSslProtocol(String sslProtocol)
sslProtocol - the new SSL protocolpublic KeyManager[] getKeyManagers()
public void setKeyManagers(KeyManager[] keyManagers)
keyManagers - the new key managerspublic SecureRandom getSecureRandom()
public void setSecureRandom(SecureRandom secureRandom)
secureRandom - the new secure randompublic String[] getEnabledCipherSuites()
public void setEnabledCipherSuites(String[] enabledCipherSuites)
enabledCipherSuites - the cipher suites which are enabledpublic org.apache.directory.api.ldap.codec.api.BinaryAttributeDetector getBinaryAttributeDetector()
public void setBinaryAttributeDetector(org.apache.directory.api.ldap.codec.api.BinaryAttributeDetector binaryAttributeDetector)
binaryAttributeDetector - the binaryAttributeDetector to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||