Class LookupLdapConnectionValidator
- java.lang.Object
-
- org.apache.directory.ldap.client.api.LookupLdapConnectionValidator
-
- All Implemented Interfaces:
LdapConnectionValidator
public final class LookupLdapConnectionValidator extends Object implements LdapConnectionValidator
An implementation ofLdapConnectionValidatorthat attempts a simple lookup on the rootDSE.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description LookupLdapConnectionValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanvalidate(LdapConnection connection)Returns true ifconnectionis connected, authenticated, and a lookup on the rootDSE returns a non-null response.
-
-
-
Method Detail
-
validate
public boolean validate(LdapConnection connection)
Returns true ifconnectionis connected, authenticated, and a lookup on the rootDSE returns a non-null response.- Specified by:
validatein interfaceLdapConnectionValidator- Parameters:
connection- The connection to validate- Returns:
- True, if the connection is still valid
-
-