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 ofLdapConnectionValidator
that 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 boolean
validate(LdapConnection connection)
Returns true ifconnection
is connected, authenticated, and a lookup on the rootDSE returns a non-null response.
-
-
-
Constructor Detail
-
LookupLdapConnectionValidator
public LookupLdapConnectionValidator()
-
-
Method Detail
-
validate
public boolean validate(LdapConnection connection)
Returns true ifconnection
is connected, authenticated, and a lookup on the rootDSE returns a non-null response.- Specified by:
validate
in interfaceLdapConnectionValidator
- Parameters:
connection
- The connection to validate- Returns:
- True, if the connection is still valid
-
-