public interface LdapParams
Modifier and Type | Method | Description |
---|---|---|
int |
check() |
Check parameters and return what are wrong.
|
LdapParams |
clone() |
Instantiate a new
LdapParams with values from source. |
LdapAuthMethod |
getAuthMethod() |
Get the authentification method.
|
java.lang.String |
getBaseObject() |
Get the BaseObject.
|
java.lang.String |
getBindDn() |
Get the Bind DN to use for bindings.
|
java.lang.String |
getCustomValue(java.lang.String key) |
Get the value from field.
|
LdapDebugLevel |
getDebugLevel() |
Return the debug verbosity level.
|
int |
getDelay() |
Get the delay between each search in milliseconds.
|
boolean |
getEnabled() |
Return if the configuration is enabled.
|
java.lang.String |
getFilter() |
Get the search is based on this filter to search contacts.
|
int |
getMaxResults() |
Get the max results when requesting searches.
|
int |
getMinChars() |
Get the minimum characters needed for doing a search on LDAP servers.
|
java.lang.String |
getNameAttribute() |
Get the attributes to build Name Friend, separated by a comma and the first is
the highest priority. |
long |
getNativePointer() |
Gets the native pointer used by this class to make native method calls.
|
java.lang.String |
getPassword() |
Get the password to pass to server when binding.
|
java.lang.String |
getServer() |
Get the LDAP Server.
|
LdapCertVerificationMode |
getServerCertificatesVerificationMode() |
Return whether the tls server certificate must be verified when connecting to a
LDAP server. |
java.lang.String |
getSipAttribute() |
Get the attributes to build the SIP username in address of Friend.
|
java.lang.String |
getSipDomain() |
Get the domain to the sip address(sip:username).
|
int |
getTimeout() |
Get the timeout in seconds.
|
java.lang.Object |
getUserData() |
Gets the object stored in this object user's data
|
boolean |
isSalEnabled() |
Return if the dns resolution is done by Linphone using Sal.
|
boolean |
isTlsEnabled() |
Return if transactions are encrypted by LDAP over TLS(StartTLS).
|
void |
setAuthMethod(LdapAuthMethod authMethod) |
Authentification method.
|
void |
setBaseObject(java.lang.String baseObject) |
BaseObject is a specification for LDAP Search Scopes that specifies that the
Search Request should only be performed against the entry specified as the search base DN. |
void |
setBindDn(java.lang.String bindDn) |
Bind DN to use for bindings.
|
void |
setCustomValue(java.lang.String key,
java.lang.String value) |
Set custom field.
|
void |
setDebugLevel(LdapDebugLevel level) |
The debug verbosity level from internal LDAP API.
|
void |
setDelay(int delay) |
Delay between each search in milliseconds Default value : 500.
|
void |
setEnabled(boolean enable) |
If this config is enabled.
|
void |
setFilter(java.lang.String filter) |
The search is based on this filter to search contacts.
|
void |
setMaxResults(int maxResults) |
The max results when requesting searches.
|
void |
setMinChars(int minChars) |
The minimum characters needed for doing a search on LDAP servers.
|
void |
setNameAttribute(java.lang.String nameAttribute) |
Check these attributes to build Name Friend, separated by a comma and the first
is the highest priority. |
void |
setPassword(java.lang.String password) |
The password to pass to server when binding.
|
void |
setSalEnabled(boolean enable) |
The dns resolution is done by Linphone using Sal.
|
void |
setServer(java.lang.String server) |
LDAP Server.
|
void |
setServerCertificatesVerificationMode(LdapCertVerificationMode verifyServerCertificates) |
Specify whether the tls server certificate must be verified when connecting to
a LDAP server. |
void |
setSipAttribute(java.lang.String sipAttribute) |
Check these attributes to build the SIP username in address of Friend.
|
void |
setSipDomain(java.lang.String sipDomain) |
Add the domain to the sip address(sip:username).
|
void |
setTimeout(int timeout) |
Timeout in seconds Default value : 5.
|
void |
setTlsEnabled(boolean enable) |
Encrypt transactions by LDAP over TLS(StartTLS).
|
void |
setUserData(java.lang.Object data) |
Sets the object to store in this object user's data
|
java.lang.String |
toString() |
LdapAuthMethod getAuthMethod()
LdapAuthMethod
. void setAuthMethod(LdapAuthMethod authMethod)
LdapAuthMethod
for authentification values. Default value :authMethod
- The LdapAuthMethod
. @NonNull java.lang.String getBaseObject()
void setBaseObject(@NonNull java.lang.String baseObject)
baseObject
- The specification. @Nullable java.lang.String getBindDn()
void setBindDn(@Nullable java.lang.String bindDn)
bindDn
- The Bind DN to use for bindings. LdapDebugLevel getDebugLevel()
LdapDebugLevel
debug level. void setDebugLevel(LdapDebugLevel level)
LdapDebugLevel
Default value: LinphoneLdapDebugLevelOfflevel
- The LdapDebugLevel
debug level. int getDelay()
void setDelay(int delay)
delay
- The timeout in milliseconds. boolean getEnabled()
void setEnabled(boolean enable)
enable
- Enable or not the LDAP configuration. @Nullable java.lang.String getFilter()
void setFilter(@Nullable java.lang.String filter)
filter
- The filter to use. int getMaxResults()
void setMaxResults(int maxResults)
maxResults
- The max results when requesting searches. int getMinChars()
void setMinChars(int minChars)
minChars
- The minimum characters needed by a search. @Nullable java.lang.String getNameAttribute()
void setNameAttribute(@Nullable java.lang.String nameAttribute)
nameAttribute
- The comma separated attributes for the search. @Nullable java.lang.String getPassword()
void setPassword(@Nullable java.lang.String password)
password
- The password to pass to server when binding. boolean isSalEnabled()
void setSalEnabled(boolean enable)
enable
- Enable or not the use of sal. @NonNull java.lang.String getServer()
void setServer(@NonNull java.lang.String server)
server
- LDAP Server address. LdapCertVerificationMode getServerCertificatesVerificationMode()
LdapCertVerificationMode
void setServerCertificatesVerificationMode(LdapCertVerificationMode verifyServerCertificates)
LdapCertVerificationMode
Default value :verifyServerCertificates
- The TLS verification mode from LdapCertVerificationMode
@Nullable java.lang.String getSipAttribute()
void setSipAttribute(@Nullable java.lang.String sipAttribute)
sipAttribute
- The comma separated attributes for building Friend. @Nullable java.lang.String getSipDomain()
void setSipDomain(@Nullable java.lang.String sipDomain)
sipDomain
- The SIP domain for the friend. int getTimeout()
void setTimeout(int timeout)
timeout
- The timeout in seconds. boolean isTlsEnabled()
void setTlsEnabled(boolean enable)
enable
- Enable or not the use of TLS. int check()
LdapCheck
values. LinphoneLdapCheckOk if everything is ok. @NonNull LdapParams clone()
LdapParams
object. @Nullable java.lang.String getCustomValue(@NonNull java.lang.String key)
key
- The key string. void setCustomValue(@NonNull java.lang.String key, @Nullable java.lang.String value)
key
- The key string. value
- The value string. void setUserData(java.lang.Object data)
data
- the object to storejava.lang.Object getUserData()
long getNativePointer()
java.lang.String toString()
toString
in class java.lang.Object