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 of LdapConnectionValidator that attempts a simple lookup on the rootDSE.
Author:
Apache Directory Project
  • Constructor Details

    • LookupLdapConnectionValidator

      public LookupLdapConnectionValidator()
      Default constructor
  • Method Details

    • validate

      public boolean validate(LdapConnection connection)
      Returns true if connection is connected, authenticated, and a lookup on the rootDSE returns a non-null response.
      Specified by:
      validate in interface LdapConnectionValidator
      Parameters:
      connection - The connection to validate
      Returns:
      True, if the connection is still valid