public class LDAPConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
enabled |
protected java.lang.String |
groupFilter |
protected java.lang.String |
groupObjectClass |
protected java.lang.String |
groupSuffix |
protected java.lang.String |
hostname |
protected boolean |
isSSL |
protected boolean |
isUsingPosixGroup |
static java.lang.String |
LDAP_ENABLED |
static java.lang.String |
LDAP_SERVER_GROUP_FILTER |
static java.lang.String |
LDAP_SERVER_GROUP_OBJECTCLASS |
static java.lang.String |
LDAP_SERVER_GROUP_SUFFIX |
static java.lang.String |
LDAP_SERVER_HOSTNAME |
static java.lang.String |
LDAP_SERVER_LOGIN |
static java.lang.String |
LDAP_SERVER_PASSWORD |
static java.lang.String |
LDAP_SERVER_PORT |
static java.lang.String |
LDAP_SERVER_SIZE_LIMIT |
static java.lang.String |
LDAP_SERVER_SSL |
static java.lang.String |
LDAP_SERVER_SUFFIX |
static java.lang.String |
LDAP_SERVER_TIME_LIMIT |
static java.lang.String |
LDAP_SERVER_USER_FILTER |
static java.lang.String |
LDAP_SERVER_USER_OBJECTCLASS |
static java.lang.String |
LDAP_SERVER_VERSION |
static java.lang.String |
LDAP_SYNCHRONIZE |
static java.lang.String |
LDAP_SYNCHRONIZE_GROUPS |
protected java.lang.String |
login |
protected java.lang.String |
password |
protected int |
port |
static java.lang.String |
REVISION |
protected int |
sizeLimit |
protected java.lang.String |
suffix |
protected boolean |
synchronize |
protected boolean |
synchronizeGroups |
protected int |
timeLimit |
protected java.lang.String |
userFilter |
protected java.lang.String |
userObjectClass |
protected int |
version |
Constructor and Description |
---|
LDAPConfiguration(JProperties props)
Build a new LDAPConfiguration from properties "ldap.*" available
in the specified JProperties.
|
LDAPConfiguration(JProperties props,
java.lang.String serverConf)
Build a new LDAPConfiguration from properties "ldap.*" available
in the specified JProperties, trying to retrieve custom properties
from the specified configuration prior to using default properties.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getGroupFilter() |
java.lang.String |
getGroupObjectClass() |
java.lang.String |
getGroupSuffix() |
java.lang.String |
getHostname() |
java.lang.String |
getLogin() |
java.lang.String |
getPassword() |
int |
getPort() |
int |
getSizeLimit() |
java.lang.String |
getSuffix() |
boolean |
getSynchronize() |
boolean |
getSynchronizeGroups() |
int |
getTimeLimit() |
java.lang.String |
getUserFilter() |
java.lang.String |
getUserObjectClass() |
int |
getVersion() |
boolean |
isEnabled() |
boolean |
isSSL() |
boolean |
isUsingPosixGroup() |
protected void |
readProperties(JProperties prop,
java.lang.String serverConf) |
void |
setGroupFilter(java.lang.String groupFilter) |
void |
setGroupObjectClass(java.lang.String groupObjectClass) |
void |
setLogin(java.lang.String login) |
void |
setPassword(java.lang.String password) |
void |
setUserFilter(java.lang.String userFilter) |
void |
setUserObjectClass(java.lang.String userObjectClass) |
public static final java.lang.String REVISION
public static final java.lang.String LDAP_ENABLED
public static final java.lang.String LDAP_SYNCHRONIZE
public static final java.lang.String LDAP_SYNCHRONIZE_GROUPS
public static final java.lang.String LDAP_SERVER_SSL
public static final java.lang.String LDAP_SERVER_HOSTNAME
public static final java.lang.String LDAP_SERVER_LOGIN
public static final java.lang.String LDAP_SERVER_PORT
public static final java.lang.String LDAP_SERVER_SIZE_LIMIT
public static final java.lang.String LDAP_SERVER_TIME_LIMIT
public static final java.lang.String LDAP_SERVER_VERSION
public static final java.lang.String LDAP_SERVER_PASSWORD
public static final java.lang.String LDAP_SERVER_SUFFIX
public static final java.lang.String LDAP_SERVER_USER_FILTER
public static final java.lang.String LDAP_SERVER_USER_OBJECTCLASS
public static final java.lang.String LDAP_SERVER_GROUP_SUFFIX
public static final java.lang.String LDAP_SERVER_GROUP_FILTER
public static final java.lang.String LDAP_SERVER_GROUP_OBJECTCLASS
protected boolean enabled
protected boolean synchronize
protected boolean synchronizeGroups
protected java.lang.String hostname
protected java.lang.String login
protected java.lang.String password
protected int port
protected int sizeLimit
protected int timeLimit
protected int version
protected boolean isSSL
protected java.lang.String suffix
protected java.lang.String userFilter
protected java.lang.String userObjectClass
protected java.lang.String groupSuffix
protected java.lang.String groupFilter
protected java.lang.String groupObjectClass
protected boolean isUsingPosixGroup
public LDAPConfiguration(JProperties props)
props
- the properties from which LDAPConfiguration is being builtpublic LDAPConfiguration(JProperties props, java.lang.String serverConf)
For example, given the following properties :
ldap.server.hostname: ldap.example.com ldap.server.login: foo ldap.server.password: bar ldap.server.conf2.hostname: other-domain-ldap.example.comInvoking this constructor
LDAPConfiguration conf = new LDAPConfiguration(channel.getProperties("ldap"), "conf2"); assertEquals("other-domain-ldap.example.com", conf.getHostname()); assertEquals("foo", conf.getLogin()); assertEquals("bar", conf.getPassword());
props
- the properties from which LDAPConfiguration is being builtserverConf
- an optionnal subconfiguration to use after "ldap.server." default
prefix, to retrieve Server configuration optionsprotected void readProperties(JProperties prop, java.lang.String serverConf)
public boolean isEnabled()
public boolean getSynchronize()
public boolean getSynchronizeGroups()
public boolean isSSL()
public java.lang.String getHostname()
public java.lang.String getLogin()
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public void setLogin(java.lang.String login)
public int getPort()
public int getSizeLimit()
public int getTimeLimit()
public int getVersion()
public java.lang.String getSuffix()
public java.lang.String getUserFilter()
MessageFormat.format(java.lang.String, java.lang.Object[])
and used to search for users in the LDAP.public void setUserFilter(java.lang.String userFilter)
public java.lang.String getUserObjectClass()
public void setUserObjectClass(java.lang.String userObjectClass)
public java.lang.String getGroupSuffix()
public java.lang.String getGroupFilter()
MessageFormat.format(java.lang.String, java.lang.Object[])
and used to search for groups in the LDAP.public void setGroupFilter(java.lang.String groupFilter)
public java.lang.String getGroupObjectClass()
public void setGroupObjectClass(java.lang.String groupObjectClass)
public boolean isUsingPosixGroup()
Copyright © 2001-2010 Jalios SA. All Rights Reserved.