Package overit.geocall.config.company
Class PropertiesLDAPService
java.lang.Object
overit.geocall.config.company.PropertiesLDAPService
class containing the configurations related to the configured ldap services.
note: all the configuration refers to the company whose the identity belongs to.
note: all the configuration refers to the company whose the identity belongs to.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringcredentials(Company company, String service) Retrieve the password used to authenticate in the LDAP directorystatic StringRetrieve the reference domain in the LDAP directorystatic StringRetrieve the reference to the factory class to be used to instantiate the connections to the LDAP server.static Stringparameters(Company company, String service) Retrieve the LDAP search parameters.static StringRetrieve the username used to authenticate in the LDAP directoryGet the list of the names for the configured ldap services.Retrieve the urls associated to the ldap server.
-
Method Details
-
services
Get the list of the names for the configured ldap services.- Parameters:
company- the company from which extract the configuration- Returns:
- the names of the configured ldap service. If there's no ldap service configured, this method will return an empty list.
-
urls
Retrieve the urls associated to the ldap server.- Parameters:
company- the company from which extract the configurationservice- the name of the selected ldap service- Returns:
- the service urls or empty list if it is not configured
-
factory
Retrieve the reference to the factory class to be used to instantiate the connections to the LDAP server. Usually, thecom.sun.jndi.ldap.LdapCtxFactoryclass is used.- Parameters:
company- the company from which extract the configurationservice- the name of the selected ldap service- Returns:
- the ldap factory class reference or null if it is not configured
-
principal
Retrieve the username used to authenticate in the LDAP directory- Parameters:
company- the company from which extract the configurationservice- the name of the selected ldap service- Returns:
- the principal username or null if it is not configured
-
credentials
Retrieve the password used to authenticate in the LDAP directory- Parameters:
company- the company from which extract the configurationservice- the name of the selected ldap service- Returns:
- the principal password or null if it is not configured
-
domain
Retrieve the reference domain in the LDAP directory- Parameters:
company- the company from which extract the configurationservice- the name of the selected ldap service- Returns:
- the domain of the ldap directory or null if it is not configured
-
parameters
Retrieve the LDAP search parameters. The string must comply to the following format: param1=value1,param2=value2.- Parameters:
company- the company from which extract the configurationservice- the name of the selected ldap service- Returns:
- the lda additional parameters or null if it is not configured
-