|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.integration.directory.connector.LDAPPropertiesMapperImpl
public class LDAPPropertiesMapperImpl
| Field Summary | |
|---|---|
static java.lang.String |
CONNECTION_BINARY_ATTRIBUTES
LDAP binary attributes. |
static java.lang.String |
CONNECTION_FACTORY
LDAP connection factory. |
static java.lang.String |
CONNECTION_FACTORY_SSL_IMPL
LDAP secure connection factory. |
static java.lang.String |
CONNECTION_INITIAL_CONTEXT_FACTORY
LDAP initial context factory. |
static java.lang.String |
CONNECTION_SECURITY_AUTHENTICATION
LDAP connection method. |
static java.lang.String |
CONNECTION_SSL_SECURITY_PROTOCOL
LDAP secure connection method. |
| Constructor Summary | |
|---|---|
LDAPPropertiesMapperImpl()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAttribute(java.lang.String key)
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
|
java.lang.String |
getBaseDN()
|
protected boolean |
getBooleanKey(java.lang.String key)
|
protected boolean |
getBooleanKey(java.lang.String key,
boolean defaultValue)
|
java.util.Map<java.lang.String,java.util.Properties> |
getConfigurationDetails()
Returns a map of the LDAP names as the keys and the properties associated
with that LDAP connector. |
java.lang.String |
getConnectionURL()
|
java.util.Hashtable<java.lang.String,java.lang.String> |
getEnvironment()
|
java.lang.String |
getGroupBaseDN()
|
java.lang.String |
getGroupDescriptionAttribute()
|
java.lang.String |
getGroupFilter()
|
java.lang.String |
getGroupMemberAttribute()
|
java.lang.String |
getGroupNameAttribute()
|
java.lang.String |
getGroupObjectClass()
|
java.util.Map<java.lang.String,java.lang.String> |
getImplementations()
Returns a map of the LDAP names as the keys and the implementation class as Strings. |
LDAPPropertiesHelper |
getLdapPropertiesHelper()
|
java.lang.String |
getObjectClassAttribute()
|
int |
getPagedResultsSize()
|
java.lang.String |
getPassword()
|
java.lang.String |
getPrincipalBaseDN()
|
java.lang.String |
getRoleBaseDN()
|
java.lang.String |
getRoleDescriptionAttribute()
|
java.lang.String |
getRoleFilter()
|
java.lang.String |
getRoleMemberAttribute()
|
java.lang.String |
getRoleNameAttribute()
|
java.lang.String |
getRoleObjectClass()
|
java.lang.String |
getUserDisplayNameAttribute()
|
java.lang.String |
getUserEmailAttribute()
|
java.lang.String |
getUserEncryptionMethod()
|
java.lang.String |
getUserFilter()
|
java.lang.String |
getUserFirstNameAttribute()
|
java.lang.String |
getUserGroupMembershipsAttribute()
The attribute on a principal that specifies their group memberships (usually "memberOf"). |
java.lang.String |
getUserLastNameAttribute()
|
java.lang.String |
getUsername()
|
java.lang.String |
getUserNameAttribute()
|
java.lang.String |
getUserNameRdnAttribute()
|
java.lang.String |
getUserObjectClass()
|
java.lang.String |
getUserPasswordAttribute()
|
boolean |
isNestedGroupsDisabled()
|
boolean |
isPagedResultsControl()
Checks if the configuration of the LDAP directory server uses paged results. |
protected boolean |
isReferral()
|
boolean |
isRelaxedDnStandardisation()
Whether we should use the more expensive but completely cross-directory compatible method for standardising DNs when mapping object DNs and and memberDNs (value = false); or if we can use a more
efficient but relaxed form of standardisation (value = true). |
boolean |
isRolesDisabled()
Returns true if roles should be disabled, as in some caching setups. |
protected boolean |
isSecureSSL()
If the connection must be secure. |
protected boolean |
isUsingConnectionPooling()
|
boolean |
isUsingUserMembershipAttribute()
Whether we should use the "memberOf" (or equivalent) attribute in LDAP queries. |
boolean |
isUsingUserMembershipAttributeForGroupMembership()
Whether we should use the "memberOf" (or equivalent) attribute when fetching the list of groups a user belongs to. |
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
|
void |
setLdapPropertiesHelper(LDAPPropertiesHelper ldapPropertiesHelper)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONNECTION_INITIAL_CONTEXT_FACTORY
public static final java.lang.String CONNECTION_SECURITY_AUTHENTICATION
public static final java.lang.String CONNECTION_SSL_SECURITY_PROTOCOL
public static final java.lang.String CONNECTION_FACTORY
public static final java.lang.String CONNECTION_FACTORY_SSL_IMPL
public static final java.lang.String CONNECTION_BINARY_ATTRIBUTES
| Constructor Detail |
|---|
public LDAPPropertiesMapperImpl()
| Method Detail |
|---|
public java.util.Map<java.lang.String,java.lang.String> getImplementations()
getImplementations in interface LDAPPropertiesMapperpublic java.util.Map<java.lang.String,java.util.Properties> getConfigurationDetails()
properties associated
with that LDAP connector.
getConfigurationDetails in interface LDAPPropertiesMapperpublic java.util.Hashtable<java.lang.String,java.lang.String> getEnvironment()
getEnvironment in interface LDAPPropertiesMapperprotected boolean isSecureSSL()
true if and only if the connection must be securem, otherwise false.protected boolean isReferral()
protected boolean isUsingConnectionPooling()
protected boolean getBooleanKey(java.lang.String key)
protected boolean getBooleanKey(java.lang.String key,
boolean defaultValue)
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
getAttributes in interface LDAPPropertiesMapperpublic void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
setAttributes in interface LDAPPropertiesMapperpublic java.lang.String getAttribute(java.lang.String key)
getAttribute in interface LDAPPropertiesMapper
public java.lang.String getBaseDN()
throws javax.naming.InvalidNameException
javax.naming.InvalidNameException
public java.lang.String getGroupBaseDN()
throws javax.naming.InvalidNameException
javax.naming.InvalidNameExceptionpublic java.lang.String getGroupFilter()
getGroupFilter in interface LDAPPropertiesMapperpublic java.lang.String getConnectionURL()
getConnectionURL in interface LDAPPropertiesMapperpublic java.lang.String getUsername()
getUsername in interface LDAPPropertiesMapperpublic java.lang.String getPassword()
getPassword in interface LDAPPropertiesMapperpublic java.lang.String getGroupNameAttribute()
getGroupNameAttribute in interface LDAPPropertiesMapperpublic java.lang.String getObjectClassAttribute()
getObjectClassAttribute in interface LDAPPropertiesMapperpublic java.lang.String getRoleFilter()
getRoleFilter in interface LDAPPropertiesMapper
public java.lang.String getRoleBaseDN()
throws javax.naming.InvalidNameException
javax.naming.InvalidNameExceptionpublic java.lang.String getRoleNameAttribute()
getRoleNameAttribute in interface LDAPPropertiesMapperpublic java.lang.String getUserFilter()
getUserFilter in interface LDAPPropertiesMapperpublic java.lang.String getPrincipalBaseDN()
public java.lang.String getUserNameAttribute()
getUserNameAttribute in interface LDAPPropertiesMapperpublic java.lang.String getUserNameRdnAttribute()
getUserNameRdnAttribute in interface LDAPPropertiesMapperpublic java.lang.String getUserEmailAttribute()
getUserEmailAttribute in interface LDAPPropertiesMapperpublic java.lang.String getUserGroupMembershipsAttribute()
LDAPPropertiesMapper
getUserGroupMembershipsAttribute in interface LDAPPropertiesMapperpublic java.lang.String getGroupObjectClass()
getGroupObjectClass in interface LDAPPropertiesMapperpublic java.lang.String getGroupDescriptionAttribute()
getGroupDescriptionAttribute in interface LDAPPropertiesMapperpublic java.lang.String getGroupMemberAttribute()
getGroupMemberAttribute in interface LDAPPropertiesMapperpublic java.lang.String getRoleObjectClass()
getRoleObjectClass in interface LDAPPropertiesMapperpublic java.lang.String getRoleDescriptionAttribute()
getRoleDescriptionAttribute in interface LDAPPropertiesMapperpublic java.lang.String getRoleMemberAttribute()
getRoleMemberAttribute in interface LDAPPropertiesMapperpublic java.lang.String getUserObjectClass()
getUserObjectClass in interface LDAPPropertiesMapperpublic java.lang.String getUserFirstNameAttribute()
getUserFirstNameAttribute in interface LDAPPropertiesMapperpublic java.lang.String getUserLastNameAttribute()
getUserLastNameAttribute in interface LDAPPropertiesMapperpublic java.lang.String getUserDisplayNameAttribute()
getUserDisplayNameAttribute in interface LDAPPropertiesMapperpublic java.lang.String getUserPasswordAttribute()
getUserPasswordAttribute in interface LDAPPropertiesMapperpublic java.lang.String getUserEncryptionMethod()
getUserEncryptionMethod in interface LDAPPropertiesMapperpublic boolean isPagedResultsControl()
isPagedResultsControl in interface LDAPPropertiesMappertrue if and only if paged results is enabled for the LDAP server, otherwise false.public int getPagedResultsSize()
getPagedResultsSize in interface LDAPPropertiesMapperpublic boolean isNestedGroupsDisabled()
isNestedGroupsDisabled in interface LDAPPropertiesMapperpublic boolean isUsingUserMembershipAttribute()
LDAPPropertiesMapper
isUsingUserMembershipAttribute in interface LDAPPropertiesMapperpublic boolean isUsingUserMembershipAttributeForGroupMembership()
LDAPPropertiesMapper
isUsingUserMembershipAttributeForGroupMembership in interface LDAPPropertiesMapperpublic boolean isRelaxedDnStandardisation()
LDAPPropertiesMapperfalse); or if we can use a more
efficient but relaxed form of standardisation (value = true).
See DNStandardiser for more information.
isRelaxedDnStandardisation in interface LDAPPropertiesMapperfalse if proper standardisation is required.public boolean isRolesDisabled()
LDAPPropertiesMapper
isRolesDisabled in interface LDAPPropertiesMapperpublic LDAPPropertiesHelper getLdapPropertiesHelper()
public void setLdapPropertiesHelper(LDAPPropertiesHelper ldapPropertiesHelper)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||