com.atlassian.user.impl.ldap.repository
Class DefaultLdapContextFactory
java.lang.Object
com.atlassian.user.impl.ldap.repository.DefaultLdapContextFactory
- All Implemented Interfaces:
- LdapContextFactory
public class DefaultLdapContextFactory
- extends Object
- implements LdapContextFactory
| Fields inherited from interface com.atlassian.user.impl.ldap.repository.LdapContextFactory |
BASE_GROUP_NAMESPACE, BASE_USER_NAMESPACE, BATCH_SIZE, EMAIL_ATTRIBUTE, FIRSTNAME_ATTRIBUTE, GROUP_SEARCH_ALL_DEPTHS, GROUP_SEARCH_FILTER, GROUPNAME_ATTRIBUTE, HOST, JNDI_INITIAL_CONTEXT_FACTORY, MEMBERSHIP_ATTRIBUTE, PASSWORD_ATTRIBUTE, PORT, PROVIDER_URL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIAL, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, SURNAME_ATTRIBUTE, TIME_TO_LIVE, USE_UNQUALIFIED_USER_NAME_FOR_MEMBERSHIP_COMPARISON, USER_SEARCH_ALL_DEPTHS, USER_SEARCH_FILTER, USERNAME_ATTRIBUTE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLdapContextFactory
public DefaultLdapContextFactory(LdapConnectionProperties connectionProperties)
getJNDIEnv
public Hashtable<String,Object> getJNDIEnv()
- Description copied from interface:
LdapContextFactory
- Returns a JNDI environment suitable for passing to
InitialDirContext.InitialDirContext(Hashtable).
The environment is suitable for a connection using all the configuration specified in the other properties
on this object.
- Specified by:
getJNDIEnv in interface LdapContextFactory
getAuthenticationJndiEnvironment
public Hashtable getAuthenticationJndiEnvironment(String userDn,
String password)
- Description copied from interface:
LdapContextFactory
- Returns a JNDI environment suitable for passing to
InitialDirContext#InitialContext(Hashtable).
The environment is suitable for a connection for authenticating the username and password provided.
- Specified by:
getAuthenticationJndiEnvironment in interface LdapContextFactory
getLDAPContext
public DirContext getLDAPContext()
throws RepositoryException
- Description copied from interface:
LdapContextFactory
- Opens a new connection to the LDAP server.
- Specified by:
getLDAPContext in interface LdapContextFactory
- Returns:
- an LDAP directory context suitable for interacting with the LDAP server
- Throws:
RepositoryException - if there was a problem opening the connection
Copyright © 2005-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.