public class LdapConfiguration extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private String |
authenticationMethod
The LDAP authenticationMethod.
|
private String |
baseDn
The LDAP base dn.
|
private String |
baseGroupsDn
The LDAP base dn for groups (if empty baseDn is used).
|
private boolean |
bindAuthenticatorEnabled
The LDAP authenticator enabled.
|
private String |
bindDn
The LDAP bind dn.
|
private String |
contextFactory
contextFactory to use.
|
private Map |
extraProperties
Field extraProperties.
|
private String |
hostName
The LDAP host.
|
private String |
password
The LDAP password.
|
private int |
port
The LDAP port.
|
private boolean |
ssl
ssl LDAP connection.
|
private boolean |
useRoleNameAsGroup
Will use role name as LDAP group.
|
private boolean |
writable
LDAP writable.
|
Constructor and Description |
---|
LdapConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addExtraProperty(Object key,
String value)
Method addExtraProperty.
|
String |
getAuthenticationMethod()
Get the LDAP authenticationMethod.
|
String |
getBaseDn()
Get the LDAP base dn.
|
String |
getBaseGroupsDn()
Get the LDAP base dn for groups (if empty baseDn is used).
|
String |
getBindDn()
Get the LDAP bind dn.
|
String |
getContextFactory()
Get contextFactory to use.
|
Map |
getExtraProperties()
Method getExtraProperties.
|
String |
getHostName()
Get the LDAP host.
|
String |
getPassword()
Get the LDAP password.
|
int |
getPort()
Get the LDAP port.
|
boolean |
isBindAuthenticatorEnabled()
Get the LDAP authenticator enabled.
|
boolean |
isSsl()
Get ssl LDAP connection.
|
boolean |
isUseRoleNameAsGroup()
Get will use role name as LDAP group.
|
boolean |
isWritable()
Get lDAP writable.
|
void |
setAuthenticationMethod(String authenticationMethod)
Set the LDAP authenticationMethod.
|
void |
setBaseDn(String baseDn)
Set the LDAP base dn.
|
void |
setBaseGroupsDn(String baseGroupsDn)
Set the LDAP base dn for groups (if empty baseDn is used).
|
void |
setBindAuthenticatorEnabled(boolean bindAuthenticatorEnabled)
Set the LDAP authenticator enabled.
|
void |
setBindDn(String bindDn)
Set the LDAP bind dn.
|
void |
setContextFactory(String contextFactory)
Set contextFactory to use.
|
void |
setExtraProperties(Map extraProperties)
Set additional properties to use for ldap connection.
|
void |
setHostName(String hostName)
Set the LDAP host.
|
void |
setPassword(String password)
Set the LDAP password.
|
void |
setPort(int port)
Set the LDAP port.
|
void |
setSsl(boolean ssl)
Set ssl LDAP connection.
|
void |
setUseRoleNameAsGroup(boolean useRoleNameAsGroup)
Set will use role name as LDAP group.
|
void |
setWritable(boolean writable)
Set lDAP writable.
|
private int port
private boolean ssl
private String baseGroupsDn
private String contextFactory
private String authenticationMethod
private boolean bindAuthenticatorEnabled
private boolean writable
private boolean useRoleNameAsGroup
private Map extraProperties
public LdapConfiguration()
public void addExtraProperty(Object key, String value)
key
- value
- public String getAuthenticationMethod()
public String getBaseGroupsDn()
public String getContextFactory()
public Map getExtraProperties()
public String getHostName()
public String getPassword()
public int getPort()
public boolean isBindAuthenticatorEnabled()
public boolean isSsl()
public boolean isUseRoleNameAsGroup()
public boolean isWritable()
public void setAuthenticationMethod(String authenticationMethod)
authenticationMethod
- public void setBaseGroupsDn(String baseGroupsDn)
baseGroupsDn
- public void setBindAuthenticatorEnabled(boolean bindAuthenticatorEnabled)
bindAuthenticatorEnabled
- public void setContextFactory(String contextFactory)
contextFactory
- public void setExtraProperties(Map extraProperties)
extraProperties
- public void setHostName(String hostName)
hostName
- public void setPassword(String password)
password
- public void setPort(int port)
port
- public void setSsl(boolean ssl)
ssl
- public void setUseRoleNameAsGroup(boolean useRoleNameAsGroup)
useRoleNameAsGroup
- public void setWritable(boolean writable)
writable
- Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.