Package edu.vt.middleware.ldap
Interface BaseLdap
-
- All Known Implementing Classes:
AbstractLdap,Ldap,SearchDnResolver
public interface BaseLdapBaseLdapprovides a base interface for all ldap implementations.- Version:
- $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
- Author:
- Middleware Services
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()This will close the connection to the LDAP.booleanconnect()This will establish a connection to the ldap.booleanreconnect()This will close the connection to the LDAP and establish a new connection.
-
-
-
Method Detail
-
connect
boolean connect() throws javax.naming.NamingExceptionThis will establish a connection to the ldap.- Returns:
boolean- whether the connection was successfull- Throws:
javax.naming.NamingException- if the LDAP cannot be reached
-
reconnect
boolean reconnect() throws javax.naming.NamingExceptionThis will close the connection to the LDAP and establish a new connection.- Returns:
boolean- whether the connection was successfull- Throws:
javax.naming.NamingException- if the LDAP cannot be reached
-
close
void close()
This will close the connection to the LDAP.
-
-