com.atlassian.crowd.integration.directory.connector
Class LDAPPropertiesMapper

java.lang.Object
  extended by com.atlassian.crowd.integration.directory.connector.LDAPPropertiesMapper

public class LDAPPropertiesMapper
extends Object


Field Summary
static String CONNECTION_FACTORY
          LDAP connection factory.
static String CONNECTION_FACTORY_SSL_IMPL
          LDAP secure connection factory.
static String CONNECTION_INITIAL_CONTEXT_FACTORY
          LDAP initial context factory.
static String CONNECTION_SECURITY_AUTHENTICATION
          LDAP connection method.
static String CONNECTION_SSL_SECURITY_PROTOCOL
          LDAP secure connection method.
static String GROUP_DESCRIPTION_KEY
          Attribute key for the LDAP group description attribute.
static String GROUP_DN_ADDITION
          Attribute key for the LDAP group base dn.
static String GROUP_NAME_KEY
          Attribute key for the LDAP group name attribute.
static String GROUP_OBJECTCLASS_KEY
          Attribute key for the LDAP group object class.
static String GROUP_OBJECTFILTER_KEY
          Attribute key for the LDAP group object class.
static String GROUP_USERNAMES_KEY
          Attribute key for the LDAP group membership attribute.
static String LDAP_BASEDN_KEY
          Attribute key for the LDAP base DN.
static String LDAP_PASSWORD_KEY
          Attribute key for the LDAP password.
static String LDAP_REFERRAL_KEY
          Attribute key for the referral option.
static String LDAP_SECURE_KEY
          Attribute key for the SSL required flag.
static String LDAP_URL_KEY
          Attribute key for the LDAP url.
static String LDAP_USERDN_KEY
          Attribute key for the LDAP user DN.
static String ROLE_DESCRIPTION_KEY
          Attribute key for the LDAP role description attribute.
static String ROLE_DN_ADDITION
          Attribute key for the LDAP role base dn.
static String ROLE_NAME_KEY
          Attribute key for the LDAP role name attribute.
static String ROLE_OBJECTCLASS_KEY
          Attribute key for the LDAP role object class.
static String ROLE_OBJECTFILTER_KEY
          Attribute key for the LDAP role object class.
static String ROLE_USERNAMES_KEY
          Attribute key for the LDAP role membership attribute.
static String USER_DN_ADDITION
          Attribute key for the LDAP principal base dn.
static String USER_EMAIL_KEY
          Attribute key for the LDAP principal email attribute.
static String USER_FIRSTNAME_KEY
          Attribute key for the LDAP principal lastname attribute.
static String USER_GROUP_KEY
          Attribute key for the LDAP principal memberships attribute.
static String USER_LASTNAME_KEY
          Attribute key for the LDAP principal firstname attribute.
static String USER_OBJECTCLASS_KEY
          Attribute key for the LDAP principal object class.
static String USER_OBJECTFILTER_KEY
          Attribute key for the LDAP role object class.
static String USER_PASSWORD_KEY
          Attribute key for the LDAP principal password attribute.
static String USER_USERNAME_KEY
          Attribute key for the LDAP principal name attribute.
 
Constructor Summary
LDAPPropertiesMapper()
           
 
Method Summary
 Map getAttributes()
           
 String getBaseDN()
           
 Map getConfigurationDetails()
          Returns a map of the LDAP names as the keys and the properties associated with that LDAP connector.
 String getConnectionURL()
           
 Hashtable getEnvironment()
           
 String getGroupBaseDN()
           
 String getGroupDescriptionAttribute()
           
 String getGroupFilter()
           
 String getGroupMemberAttribute()
           
 String getGroupNameAttribute()
           
 String getGroupObject()
           
 Map getImplementations()
          Returns a map of the LDAP names as the keys and the implementation class as Strings.
 LDAPPropertiesHelper getLdapPropertiesHelper()
           
 String getObjectClassAttribute()
           
 String getPassword()
           
 String getPrincipalBaseDN()
           
 String getPrincipalEmailAttribute()
           
 String getPrincipalFilter()
           
 String getPrincipalFirstnameAttribute()
           
 String getPrincipalLastnameAttribute()
           
 String getPrincipalNameAttribute()
           
 String getPrincipalObject()
           
 String getPrincipalPasswordAttribute()
           
 String getRoleBaseDN()
           
 String getRoleDescriptionAttribute()
           
 String getRoleFilter()
           
 String getRoleMemberAttribute()
           
 String getRoleNameAttribute()
           
 String getRoleObject()
           
 String getSingleAttribute(String key)
           
 String getUsername()
           
protected  boolean isReferral()
           
protected  boolean isSecureSSL()
          If the connection must be secure.
 void setAttributes(Map 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

LDAP_URL_KEY

public static final String LDAP_URL_KEY
Attribute key for the LDAP url.

See Also:
Constant Field Values

LDAP_SECURE_KEY

public static final String LDAP_SECURE_KEY
Attribute key for the SSL required flag.

See Also:
Constant Field Values

LDAP_REFERRAL_KEY

public static final String LDAP_REFERRAL_KEY
Attribute key for the referral option.

See Also:
Constant Field Values

LDAP_BASEDN_KEY

public static final String LDAP_BASEDN_KEY
Attribute key for the LDAP base DN.

See Also:
Constant Field Values

LDAP_USERDN_KEY

public static final String LDAP_USERDN_KEY
Attribute key for the LDAP user DN.

See Also:
Constant Field Values

LDAP_PASSWORD_KEY

public static final String LDAP_PASSWORD_KEY
Attribute key for the LDAP password.

See Also:
Constant Field Values

GROUP_DN_ADDITION

public static final String GROUP_DN_ADDITION
Attribute key for the LDAP group base dn.

See Also:
Constant Field Values

GROUP_DESCRIPTION_KEY

public static final String GROUP_DESCRIPTION_KEY
Attribute key for the LDAP group description attribute.

See Also:
Constant Field Values

GROUP_NAME_KEY

public static final String GROUP_NAME_KEY
Attribute key for the LDAP group name attribute.

See Also:
Constant Field Values

GROUP_OBJECTCLASS_KEY

public static final String GROUP_OBJECTCLASS_KEY
Attribute key for the LDAP group object class.

See Also:
Constant Field Values

GROUP_OBJECTFILTER_KEY

public static final String GROUP_OBJECTFILTER_KEY
Attribute key for the LDAP group object class.

See Also:
Constant Field Values

GROUP_USERNAMES_KEY

public static final String GROUP_USERNAMES_KEY
Attribute key for the LDAP group membership attribute.

See Also:
Constant Field Values

ROLE_DN_ADDITION

public static final String ROLE_DN_ADDITION
Attribute key for the LDAP role base dn.

See Also:
Constant Field Values

ROLE_DESCRIPTION_KEY

public static final String ROLE_DESCRIPTION_KEY
Attribute key for the LDAP role description attribute.

See Also:
Constant Field Values

ROLE_NAME_KEY

public static final String ROLE_NAME_KEY
Attribute key for the LDAP role name attribute.

See Also:
Constant Field Values

ROLE_OBJECTCLASS_KEY

public static final String ROLE_OBJECTCLASS_KEY
Attribute key for the LDAP role object class.

See Also:
Constant Field Values

ROLE_OBJECTFILTER_KEY

public static final String ROLE_OBJECTFILTER_KEY
Attribute key for the LDAP role object class.

See Also:
Constant Field Values

ROLE_USERNAMES_KEY

public static final String ROLE_USERNAMES_KEY
Attribute key for the LDAP role membership attribute.

See Also:
Constant Field Values

USER_DN_ADDITION

public static final String USER_DN_ADDITION
Attribute key for the LDAP principal base dn.

See Also:
Constant Field Values

USER_EMAIL_KEY

public static final String USER_EMAIL_KEY
Attribute key for the LDAP principal email attribute.

See Also:
Constant Field Values

USER_FIRSTNAME_KEY

public static final String USER_FIRSTNAME_KEY
Attribute key for the LDAP principal lastname attribute.

See Also:
Constant Field Values

USER_GROUP_KEY

public static final String USER_GROUP_KEY
Attribute key for the LDAP principal memberships attribute.

See Also:
Constant Field Values

USER_LASTNAME_KEY

public static final String USER_LASTNAME_KEY
Attribute key for the LDAP principal firstname attribute.

See Also:
Constant Field Values

USER_OBJECTCLASS_KEY

public static final String USER_OBJECTCLASS_KEY
Attribute key for the LDAP principal object class.

See Also:
Constant Field Values

USER_OBJECTFILTER_KEY

public static final String USER_OBJECTFILTER_KEY
Attribute key for the LDAP role object class.

See Also:
Constant Field Values

USER_USERNAME_KEY

public static final String USER_USERNAME_KEY
Attribute key for the LDAP principal name attribute.

See Also:
Constant Field Values

USER_PASSWORD_KEY

public static final String USER_PASSWORD_KEY
Attribute key for the LDAP principal password attribute.

See Also:
Constant Field Values

CONNECTION_INITIAL_CONTEXT_FACTORY

public static String CONNECTION_INITIAL_CONTEXT_FACTORY
LDAP initial context factory.


CONNECTION_SECURITY_AUTHENTICATION

public static String CONNECTION_SECURITY_AUTHENTICATION
LDAP connection method.


CONNECTION_SSL_SECURITY_PROTOCOL

public static String CONNECTION_SSL_SECURITY_PROTOCOL
LDAP secure connection method.


CONNECTION_FACTORY

public static String CONNECTION_FACTORY
LDAP connection factory.


CONNECTION_FACTORY_SSL_IMPL

public static String CONNECTION_FACTORY_SSL_IMPL
LDAP secure connection factory.

Constructor Detail

LDAPPropertiesMapper

public LDAPPropertiesMapper()
Method Detail

getImplementations

public Map getImplementations()
Returns a map of the LDAP names as the keys and the implementation class as Strings.

Returns:
The implementations.

getConfigurationDetails

public Map getConfigurationDetails()
Returns a map of the LDAP names as the keys and the properties associated with that LDAP connector.

Returns:
The configuration details.

getEnvironment

public Hashtable getEnvironment()

isSecureSSL

protected boolean isSecureSSL()
If the connection must be secure.

Returns:
true if and only if the connection must be securem, otherwise false.

isReferral

protected boolean isReferral()

getAttributes

public Map getAttributes()

setAttributes

public void setAttributes(Map attributes)

getSingleAttribute

public String getSingleAttribute(String key)

getBaseDN

public String getBaseDN()

getGroupBaseDN

public String getGroupBaseDN()

getGroupFilter

public String getGroupFilter()

getConnectionURL

public String getConnectionURL()

getUsername

public String getUsername()

getPassword

public String getPassword()

getGroupNameAttribute

public String getGroupNameAttribute()

getObjectClassAttribute

public String getObjectClassAttribute()

getRoleFilter

public String getRoleFilter()

getRoleBaseDN

public String getRoleBaseDN()

getRoleNameAttribute

public String getRoleNameAttribute()

getPrincipalFilter

public String getPrincipalFilter()

getPrincipalBaseDN

public String getPrincipalBaseDN()

getPrincipalNameAttribute

public String getPrincipalNameAttribute()

getPrincipalEmailAttribute

public String getPrincipalEmailAttribute()

getGroupObject

public String getGroupObject()

getGroupDescriptionAttribute

public String getGroupDescriptionAttribute()

getGroupMemberAttribute

public String getGroupMemberAttribute()

getRoleObject

public String getRoleObject()

getRoleDescriptionAttribute

public String getRoleDescriptionAttribute()

getRoleMemberAttribute

public String getRoleMemberAttribute()

getPrincipalObject

public String getPrincipalObject()

getPrincipalFirstnameAttribute

public String getPrincipalFirstnameAttribute()

getPrincipalLastnameAttribute

public String getPrincipalLastnameAttribute()

getPrincipalPasswordAttribute

public String getPrincipalPasswordAttribute()

getLdapPropertiesHelper

public LDAPPropertiesHelper getLdapPropertiesHelper()

setLdapPropertiesHelper

public void setLdapPropertiesHelper(LDAPPropertiesHelper ldapPropertiesHelper)


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.