1package org.apache.archiva.redback.common.ldap.connection;
23/*4 * Licensed to the Apache Software Foundation (ASF) under one5 * or more contributor license agreements. See the NOTICE file6 * distributed with this work for additional information7 * regarding copyright ownership. The ASF licenses this file8 * to you under the Apache License, Version 2.0 (the9 * "License"); you may not use this file except in compliance10 * with the License. You may obtain a copy of the License at11 *12 * http://www.apache.org/licenses/LICENSE-2.013 *14 * Unless required by applicable law or agreed to in writing,15 * software distributed under the License is distributed on an16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY17 * KIND, either express or implied. See the License for the18 * specific language governing permissions and limitations19 * under the License.20 */2122import javax.naming.ldap.LdapName;
23import javax.naming.ldap.Rdn;
24import javax.naming.spi.ObjectFactory;
25import javax.naming.spi.StateFactory;
262728/**29 * @author <a href="mailto:trygvis@inamo.no">Trygve Laugstøl</a>30 */31publicinterfaceLdapConnectionFactory32 {
33LdapConnection getConnection()
34throws LdapException;
3536LdapConnection getConnection( LdapConnectionConfiguration ldapConnectionConfiguration )
37throws LdapException;
3839LdapConnection getConnection( Rdn subRdn )
40throws LdapException;
4142LdapConnection getConnection( String bindDn, String password )
43throws LdapException;
4445 LdapName getBaseDnLdapName()
46throws LdapException;
4748void addObjectFactory( Class<? extends ObjectFactory> objectFactoryClass );
4950void addStateFactory( Class<? extends StateFactory> objectFactoryClass );
5152void initialize();
5354 }