|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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.util.Map<java.lang.String,AttributeValues> |
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 |
getGroupObject()
|
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 |
getPrincipalDisplayNameAttribute()
|
java.lang.String |
getPrincipalEmailAttribute()
|
java.lang.String |
getPrincipalFilter()
|
java.lang.String |
getPrincipalFirstnameAttribute()
|
java.lang.String |
getPrincipalGroupMembershipsAttribute()
The attribute on a principal that specifies their group memberships (usually "memberOf"). |
java.lang.String |
getPrincipalLastnameAttribute()
|
java.lang.String |
getPrincipalNameAttribute()
|
java.lang.String |
getPrincipalNameRdnAttribute()
|
java.lang.String |
getPrincipalObject()
|
java.lang.String |
getPrincipalPasswordAttribute()
|
java.lang.String |
getRoleBaseDN()
|
java.lang.String |
getRoleDescriptionAttribute()
|
java.lang.String |
getRoleFilter()
|
java.lang.String |
getRoleMemberAttribute()
|
java.lang.String |
getRoleNameAttribute()
|
java.lang.String |
getRoleObject()
|
java.lang.String |
getSingleAttribute(java.lang.String key)
|
java.lang.String |
getUserEncryptionMethod()
|
java.lang.String |
getUsername()
|
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. |
java.util.List |
pageResults(SearchContext searchContext,
java.util.List results)
|
void |
setAttributes(java.util.Map<java.lang.String,AttributeValues> 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 LDAPPropertiesMapper
public java.util.Map<java.lang.String,java.util.Properties> getConfigurationDetails()
properties
associated
with that LDAP connector.
getConfigurationDetails
in interface LDAPPropertiesMapper
public java.util.Hashtable<java.lang.String,java.lang.String> getEnvironment()
getEnvironment
in interface LDAPPropertiesMapper
protected 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,AttributeValues> getAttributes()
getAttributes
in interface LDAPPropertiesMapper
public void setAttributes(java.util.Map<java.lang.String,AttributeValues> attributes)
setAttributes
in interface LDAPPropertiesMapper
public java.lang.String getSingleAttribute(java.lang.String key)
getSingleAttribute
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.InvalidNameException
public java.lang.String getGroupFilter()
getGroupFilter
in interface LDAPPropertiesMapper
public java.lang.String getConnectionURL()
getConnectionURL
in interface LDAPPropertiesMapper
public java.lang.String getUsername()
getUsername
in interface LDAPPropertiesMapper
public java.lang.String getPassword()
getPassword
in interface LDAPPropertiesMapper
public java.lang.String getGroupNameAttribute()
getGroupNameAttribute
in interface LDAPPropertiesMapper
public java.lang.String getObjectClassAttribute()
getObjectClassAttribute
in interface LDAPPropertiesMapper
public java.lang.String getRoleFilter()
getRoleFilter
in interface LDAPPropertiesMapper
public java.lang.String getRoleBaseDN() throws javax.naming.InvalidNameException
javax.naming.InvalidNameException
public java.lang.String getRoleNameAttribute()
getRoleNameAttribute
in interface LDAPPropertiesMapper
public java.lang.String getPrincipalFilter()
getPrincipalFilter
in interface LDAPPropertiesMapper
public java.lang.String getPrincipalBaseDN()
public java.lang.String getPrincipalNameAttribute()
getPrincipalNameAttribute
in interface LDAPPropertiesMapper
public java.lang.String getPrincipalNameRdnAttribute()
getPrincipalNameRdnAttribute
in interface LDAPPropertiesMapper
public java.lang.String getPrincipalEmailAttribute()
getPrincipalEmailAttribute
in interface LDAPPropertiesMapper
public java.lang.String getPrincipalGroupMembershipsAttribute()
LDAPPropertiesMapper
getPrincipalGroupMembershipsAttribute
in interface LDAPPropertiesMapper
public java.util.List pageResults(SearchContext searchContext, java.util.List results)
pageResults
in interface LDAPPropertiesMapper
public java.lang.String getGroupObject()
getGroupObject
in interface LDAPPropertiesMapper
public java.lang.String getGroupDescriptionAttribute()
getGroupDescriptionAttribute
in interface LDAPPropertiesMapper
public java.lang.String getGroupMemberAttribute()
getGroupMemberAttribute
in interface LDAPPropertiesMapper
public java.lang.String getRoleObject()
getRoleObject
in interface LDAPPropertiesMapper
public java.lang.String getRoleDescriptionAttribute()
getRoleDescriptionAttribute
in interface LDAPPropertiesMapper
public java.lang.String getRoleMemberAttribute()
getRoleMemberAttribute
in interface LDAPPropertiesMapper
public java.lang.String getPrincipalObject()
getPrincipalObject
in interface LDAPPropertiesMapper
public java.lang.String getPrincipalFirstnameAttribute()
getPrincipalFirstnameAttribute
in interface LDAPPropertiesMapper
public java.lang.String getPrincipalLastnameAttribute()
getPrincipalLastnameAttribute
in interface LDAPPropertiesMapper
public java.lang.String getPrincipalDisplayNameAttribute()
getPrincipalDisplayNameAttribute
in interface LDAPPropertiesMapper
public java.lang.String getPrincipalPasswordAttribute()
getPrincipalPasswordAttribute
in interface LDAPPropertiesMapper
public java.lang.String getUserEncryptionMethod()
getUserEncryptionMethod
in interface LDAPPropertiesMapper
public boolean isPagedResultsControl()
isPagedResultsControl
in interface LDAPPropertiesMapper
true
if and only if paged results is enabled for the LDAP server, otherwise false
.public int getPagedResultsSize()
getPagedResultsSize
in interface LDAPPropertiesMapper
public boolean isNestedGroupsDisabled()
isNestedGroupsDisabled
in interface LDAPPropertiesMapper
public boolean isUsingUserMembershipAttribute()
LDAPPropertiesMapper
isUsingUserMembershipAttribute
in interface LDAPPropertiesMapper
public boolean isUsingUserMembershipAttributeForGroupMembership()
LDAPPropertiesMapper
isUsingUserMembershipAttributeForGroupMembership
in interface LDAPPropertiesMapper
public boolean isRelaxedDnStandardisation()
LDAPPropertiesMapper
false
); or if we can use a more
efficient but relaxed form of standardisation (value = true
).
See DNStandardiser
for more information.
isRelaxedDnStandardisation
in interface LDAPPropertiesMapper
false
if proper standardisation is required.public boolean isRolesDisabled()
LDAPPropertiesMapper
isRolesDisabled
in interface LDAPPropertiesMapper
public LDAPPropertiesHelper getLdapPropertiesHelper()
public void setLdapPropertiesHelper(LDAPPropertiesHelper ldapPropertiesHelper)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |